[prev in list] [next in list] [prev in thread] [next in thread]
List: fwts-devel
Subject: [PATCH] lib: fwts_acpi_object_eval: fix build error on i386
From: Ivan Hu <ivan.hu () canonical ! com>
Date: 2020-06-23 8:14:28
Message-ID: 20200623081428.6524-1-ivan.hu () canonical ! com
[Download RAW message or body]
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@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
--
fwts-devel mailing list
fwts-devel@lists.ubuntu.com
Modify settings or unsubscribe at: \
https://lists.ubuntu.com/mailman/listinfo/fwts-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic