diff options
| author | Jesse Gilles <jgilles@solventum.com> | 2025-11-07 13:27:49 -0600 |
|---|---|---|
| committer | Jesse Gilles <jgilles@solventum.com> | 2025-11-07 13:27:49 -0600 |
| commit | 6ed7ac3ca5fdef498a3317f65ee1c5625b1ba4c2 (patch) | |
| tree | 64574b2037fab511a4a0ae12a4fb02421cc51b3a | |
| parent | 3fbe891735ab0b866118755df37ec0c968e0f79e (diff) | |
| download | util-linux-6ed7ac3ca5fdef498a3317f65ee1c5625b1ba4c2.tar.gz | |
hwclock-rtc: fix verbose output when --param-set value is unchanged
RTC_PARAM_SET operation is skipped rather than GET
| -rw-r--r-- | sys-utils/hwclock-rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c index 318e692e97..a210eac941 100644 --- a/sys-utils/hwclock-rtc.c +++ b/sys-utils/hwclock-rtc.c @@ -533,7 +533,7 @@ int set_param_rtc(const struct hwclock_control *ctl, const char *opt0) && current_param.uvalue == param.uvalue) { /* value to be written matches current value, skip write */ if (ctl->verbose) - printf(_("skipping ioctl(%d, RTC_PARAM_GET, param) to %s: value unchanged\n"), + printf(_("skipping ioctl(%d, RTC_PARAM_SET, param) to %s: value unchanged\n"), rtc_fd, rtc_dev_name); rc = 0; goto done; |
