projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
efi_loader: reimplement LocateDevicePath
[oweals/u-boot.git]
/
lib
/
efi_selftest
/
efi_selftest_util.c
diff --git
a/lib/efi_selftest/efi_selftest_util.c
b/lib/efi_selftest/efi_selftest_util.c
index 5cffe383d8d317190581c09ae73390895ee1da2e..1b17bf4d4bc4c290a539f41f275cd6832c6627a9 100644
(file)
--- a/
lib/efi_selftest/efi_selftest_util.c
+++ b/
lib/efi_selftest/efi_selftest_util.c
@@
-21,5
+21,14
@@
int efi_st_memcmp(const void *buf1, const void *buf2, size_t length)
++pos1;
++pos2;
}
- return EFI_ST_SUCCESS;
+ return 0;
+}
+
+int efi_st_strcmp_16_8(const u16 *buf1, const char *buf2)
+{
+ for (; *buf1 || *buf2; ++buf1, ++buf2) {
+ if (*buf1 != *buf2)
+ return *buf1 - *buf2;
+ }
+ return 0;
}