wmbattery: fix format-specifier.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
This commit is contained in:
Jeremy Sowden 2019-10-27 19:55:38 +00:00 committed by Carlos R. Mafra
parent 67e3ecd074
commit 8cefc3925d

View file

@ -173,7 +173,7 @@ static int upower_read_work(int battery, apm_info *info)
goto fail_close0; goto fail_close0;
} }
else if (cv != sizeof(*info)) { else if (cv != sizeof(*info)) {
fprintf(stderr, "recv: unexpected size %d", cv); fprintf(stderr, "recv: unexpected size %zd", cv);
goto fail_close0; goto fail_close0;
} }