[PATCH] lib: fwts_acpi_object_eval: fix build error on i386
Ivan Hu
ivan.hu at canonical.com
Tue Jun 23 08:14:28 UTC 2020
the commit 87c45ec17740a37b13182453174ae80e55503900
fwts_acpi_object_eval: add a function to check buffer size
causes build error on i386
fwts_acpi_object_eval.c:590:4: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 8 has type ‘size_t {aka unsigned int}’ [-Werror=format=]
"%s should return a buffer of %" PRIu64 " bytes, "
^
../../../src/lib/include/fwts_framework.h:236:76: note: in definition of macro ‘fwts_failed’
fix the format.
Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
src/lib/src/fwts_acpi_object_eval.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/src/fwts_acpi_object_eval.c b/src/lib/src/fwts_acpi_object_eval.c
index 31484941..4a9084bc 100644
--- a/src/lib/src/fwts_acpi_object_eval.c
+++ b/src/lib/src/fwts_acpi_object_eval.c
@@ -587,7 +587,7 @@ int fwts_method_buffer_size(
if (obj->Buffer.Length != buf_size) {
fwts_failed(fw, LOG_LEVEL_CRITICAL,
"MethodBadBufferSize",
- "%s should return a buffer of %" PRIu64 " bytes, "
+ "%s should return a buffer of %zd bytes, "
"but instead returned %" PRIu32 " bytes.",
name, buf_size, obj->Buffer.Length);
return FWTS_ERROR;
--
2.17.1
More information about the fwts-devel
mailing list