summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock-cmos.c
diff options
context:
space:
mode:
authorJ William Piggott2017-03-26 15:59:37 +0200
committerJ William Piggott2017-03-31 16:04:53 +0200
commit859b0b1acb33fff2288fd6fb71b16dc62c65c44b (patch)
tree6d9cbf55cb8413248bce13e3d5cade9ceb7bf3b7 /sys-utils/hwclock-cmos.c
parenthwclock: remove unused atomic arg in cmos (diff)
downloadkernel-qcow2-util-linux-859b0b1acb33fff2288fd6fb71b16dc62c65c44b.tar.gz
kernel-qcow2-util-linux-859b0b1acb33fff2288fd6fb71b16dc62c65c44b.tar.xz
kernel-qcow2-util-linux-859b0b1acb33fff2288fd6fb71b16dc62c65c44b.zip
hwclock: improve cmos message strings
* sys-utils/hwclock-cmos.c: improve message strings Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock-cmos.c')
-rw-r--r--sys-utils/hwclock-cmos.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys-utils/hwclock-cmos.c b/sys-utils/hwclock-cmos.c
index a5eb9fd63..5158369ac 100644
--- a/sys-utils/hwclock-cmos.c
+++ b/sys-utils/hwclock-cmos.c
@@ -405,19 +405,18 @@ static int get_permissions_cmos(void)
rc = i386_iopl(3);
if (rc == IOPL_NOT_IMPLEMENTED) {
- warnx(_("I failed to get permission because I didn't try."));
+ warnx(_("ISA port access is not implemented"));
} else if (rc != 0) {
rc = errno;
- warn(_("unable to get I/O port access: "
- "the iopl(3) call failed"));
+ warn(_("iopl() port access failed"));
if (rc == EPERM && geteuid())
- warnx(_("Probably you need root privileges.\n"));
+ warnx(_("root privileges may be required"));
}
return rc ? 1 : 0;
}
static struct clock_ops cmos_interface = {
- N_("Using direct I/O instructions to ISA clock."),
+ N_("Using direct ISA access to the clock"),
get_permissions_cmos,
read_hardware_clock_cmos,
set_hardware_clock_cmos,