]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: add debugging to open_rtc()
authorSami Kerola <kerolasa@iki.fi>
Sun, 17 Jul 2016 16:10:48 +0000 (17:10 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 4 Feb 2017 23:39:38 +0000 (23:39 +0000)
commit067b60280a829a8db2bd19eeb5fde6ea630e99f3
tree362bdd1295d5d2da4e9a6418ff64f27b161a5bbe
parent6b3cb186690438caa84bea336f9b380d8159d940
hwclock: add debugging to open_rtc()

Earlier when open_rtc() returned -1 the char *rtc_dev_name end up having
NULL that made it unsuitable to be used in error message.  Now one can debug
what paths the open_rtc() tries to use when one has to debug why 'cannot
open rtc device' happen.

Reviewed-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/hwclock-rtc.c