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; }