From 8cefc3925d5ae0b077235a5e8b597efaac63d14d Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Sun, 27 Oct 2019 19:55:38 +0000 Subject: [PATCH] wmbattery: fix format-specifier. Signed-off-by: Jeremy Sowden --- wmbattery/upower.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmbattery/upower.c b/wmbattery/upower.c index 71fa896..9e210f7 100644 --- a/wmbattery/upower.c +++ b/wmbattery/upower.c @@ -173,7 +173,7 @@ static int upower_read_work(int battery, apm_info *info) goto fail_close0; } else if (cv != sizeof(*info)) { - fprintf(stderr, "recv: unexpected size %d", cv); + fprintf(stderr, "recv: unexpected size %zd", cv); goto fail_close0; }