mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 16:35:37 +00:00
efi_loader: do not use unsupported printf code
Using %zu for efi_intn_t (ssize_t) creates a build warning. Anyway %zu is not supported by efi_st_error(). So let's convert to int. Our implementation of StriColl() only returns -1, 0, or 1. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
c2e1ad70a7
commit
c966076cb5
1 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ static int test_stri_coll(void)
|
||||||
c1, c2);
|
c1, c2);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
efi_st_error(
|
efi_st_error(
|
||||||
"stri_coll(\"%ps\", \"%ps\") = %zu\n", c1, c2, ret);
|
"stri_coll(\"%ps\", \"%ps\") = %d\n", c1, c2, (int)ret);
|
||||||
return EFI_ST_FAILURE;
|
return EFI_ST_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ static int test_stri_coll(void)
|
||||||
c1, c3);
|
c1, c3);
|
||||||
if (ret >= 0) {
|
if (ret >= 0) {
|
||||||
efi_st_error(
|
efi_st_error(
|
||||||
"stri_coll(\"%ps\", \"%ps\") = %zu\n", c1, c3, ret);
|
"stri_coll(\"%ps\", \"%ps\") = %d\n", c1, c3, (int)ret);
|
||||||
return EFI_ST_FAILURE;
|
return EFI_ST_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ static int test_stri_coll(void)
|
||||||
c3, c1);
|
c3, c1);
|
||||||
if (ret <= 0) {
|
if (ret <= 0) {
|
||||||
efi_st_error(
|
efi_st_error(
|
||||||
"stri_coll(\"%ps\", \"%ps\") = %zu\n", c3, c1, ret);
|
"stri_coll(\"%ps\", \"%ps\") = %d\n", c3, c1, (int)ret);
|
||||||
return EFI_ST_FAILURE;
|
return EFI_ST_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue