efi_st_printf() does not support format code %ld. Anyway the format code
for size_t would be %zu which isn't supported either.
We do not want any divisions to avoid invalid references to integer
arithmetic routines, cf.
https://gcc.gnu.org/onlinedocs/gccint/Integer-library-routines.html.
As a simple remedy remove the noisy messages from the output.
They are not relevant for automated testing.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
(unsigned int)ret);
goto out;
}
- efi_st_printf("list_package_lists returned %ld handles\n",
- handles_size / sizeof(*handles));
free(handles);
/* STRINGS */
ret = EFI_ST_FAILURE;
goto out;
}
- efi_st_printf("list_package_lists returned %ld strings handles\n",
- handles_size / sizeof(*handles));
free(handles);
/* GUID */
ret = EFI_ST_FAILURE;
goto out;
}
- efi_st_printf("list_package_lists returned %ld guid handles\n",
- handles_size / sizeof(*handles));
free(handles);
/* KEYBOARD_LAYOUT */
ret = EFI_ST_FAILURE;
goto out;
}
- efi_st_printf("list_package_lists returned %ld keyboard layout handles\n",
- handles_size / sizeof(*handles));
free(handles);
result = EFI_ST_SUCCESS;
}
free(guids);
- efi_st_printf("find_keyboard_layouts returned %ld guids\n",
- guids_size / sizeof(*guids));
-
result = EFI_ST_SUCCESS;
out: