diff mbox series

acpi: s3: build fail for unexpected format of argument types for i386

Message ID 20230825072533.84204-1-ivan.hu@canonical.com
State Accepted
Headers show
Series acpi: s3: build fail for unexpected format of argument types for i386 | expand

Commit Message

Ivan Hu Aug. 25, 2023, 7:25 a.m. UTC
BugLink: https://bugs.launchpad.net/fwts/+bug/2033008

got several unexpected types on i386 build below,
acpi/s3/s3.c:138:31: error: format ‘%lu’ expects argument of type
‘long unsigned int’, but argument 9 has type ‘uint64_t {aka long long
unsigned int}’ [-Werror=format=]

comply with the kernel type define.

Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 src/acpi/s3/s3.c | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)
diff mbox series

Patch

diff --git a/src/acpi/s3/s3.c b/src/acpi/s3/s3.c
index 012da39e..7c2da431 100644
--- a/src/acpi/s3/s3.c
+++ b/src/acpi/s3/s3.c
@@ -57,30 +57,30 @@  static bool s3_wakeup_src = false;	/* dump wakeup source for debug */
 
 typedef struct {
 	char		name[32];
-	uint64_t	active_count;
-	uint64_t	event_count;
-	uint64_t	wakeup_count;
-	uint64_t	expire_count;
-	int64_t		active_since;
-	int64_t		total_time;
-	int64_t		max_time;
-	int64_t		last_change;
-	int64_t		prevent_suspend_time;
+	unsigned long	active_count;
+	unsigned long	event_count;
+	unsigned long	wakeup_count;
+	unsigned long	expire_count;
+	long int	active_since;
+	long int	total_time;
+	long int	max_time;
+	long int	last_change;
+	long int	prevent_suspend_time;
 } wakeup_source;
 
 static int read_wakeup_source(fwts_list *source)
 {
 	FILE		*fp;
 	char		name[32];
-	uint64_t	active_count;
-	uint64_t	event_count;
-	uint64_t	wakeup_count;
-	uint64_t	expire_count;
-	int64_t		active_since;
-	int64_t		total_time;
-	int64_t		max_time;
-	int64_t		last_change;
-	int64_t		prevent_suspend_time;
+	unsigned long	active_count;
+	unsigned long	event_count;
+	unsigned long	wakeup_count;
+	unsigned long	expire_count;
+	long int	active_since;
+	long int	total_time;
+	long int	max_time;
+	long int	last_change;
+	long int	prevent_suspend_time;
 	int		c;
 
 	fwts_list_init(source);