]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: fix format specifier [cppcheck]
authorBoris Egorov <egorov@linux.com>
Tue, 19 Jan 2016 06:16:41 +0000 (12:16 +0600)
committerBoris Egorov <egorov@linux.com>
Tue, 19 Jan 2016 06:59:12 +0000 (12:59 +0600)
[sys-utils/hwclock-rtc.c:435]: (warning) %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'.

sys-utils/hwclock-rtc.c

index 812b65b8a1a4d10c982fd1fed66e0e5b79046c92..3e32399a31c4452b68f5801d45f0171fa7ec4b59 100644 (file)
@@ -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);