summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock-rtc.c
diff options
context:
space:
mode:
authorBoris Egorov2016-01-19 07:16:41 +0100
committerBoris Egorov2016-01-19 07:59:12 +0100
commitfaebeb86e5917b9ea91bc9babf0dbf8c9ec1b343 (patch)
tree3386436e60a76b3dc622ce7331cad5a9e49e6a9a /sys-utils/hwclock-rtc.c
parentlibblkid: check limits before indexing array [cppcheck] (diff)
downloadkernel-qcow2-util-linux-faebeb86e5917b9ea91bc9babf0dbf8c9ec1b343.tar.gz
kernel-qcow2-util-linux-faebeb86e5917b9ea91bc9babf0dbf8c9ec1b343.tar.xz
kernel-qcow2-util-linux-faebeb86e5917b9ea91bc9babf0dbf8c9ec1b343.zip
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'.
Diffstat (limited to 'sys-utils/hwclock-rtc.c')
-rw-r--r--sys-utils/hwclock-rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c
index 812b65b8a..3e32399a3 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);