From: Boris Egorov Date: Tue, 19 Jan 2016 06:16:41 +0000 (+0600) Subject: hwclock: fix format specifier [cppcheck] X-Git-Tag: v2.28-rc1~186 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=faebeb86e5917b9ea91bc9babf0dbf8c9ec1b343;p=thirdparty%2Futil-linux.git hwclock: fix format specifier [cppcheck] [sys-utils/hwclock-rtc.c:435]: (warning) %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. --- diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c index 812b65b8a1..3e32399a31 100644 --- a/sys-utils/hwclock-rtc.c +++ b/sys-utils/hwclock-rtc.c @@ -432,7 +432,7 @@ int get_epoch_rtc(unsigned long *epoch_p, int silent) } if (debug) - printf(_("we have read epoch %ld from %s " + printf(_("we have read epoch %lu from %s " "with RTC_EPOCH_READ ioctl.\n"), *epoch_p, rtc_dev_name);