]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock, rtcwake: hint about uninitialized RTC on EINVAL
authorKarel Zak <kzak@redhat.com>
Wed, 24 Jun 2026 11:29:16 +0000 (13:29 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 24 Jun 2026 11:29:16 +0000 (13:29 +0200)
commit52161b408c6efb8d416d3602d72cd900d4ccc52d
treea189a73882fe25067d254aa5c96d5536280f10c3
parent6f755b51b5a973a0df8970db0f28e480586962c2
hwclock, rtcwake: hint about uninitialized RTC on EINVAL

Some RTC drivers (e.g., rtc-nxp-bbnsm) return EINVAL from
RTC_RD_TIME when the hardware time counter has never been
initialized. Print a hint so users know the likely cause rather
than just seeing "Invalid argument".

Addresses: https://github.com/util-linux/util-linux/pull/4376

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/hwclock-rtc.c
sys-utils/rtcwake.c