[PATCH 4/6] hwclock: improve cmos message strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* sys-utils/hwclock-cmos.c: improve message strings

Signed-off-by: J William Piggott <elseifthen@xxxxxxx>
---
 sys-utils/hwclock-cmos.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/sys-utils/hwclock-cmos.c b/sys-utils/hwclock-cmos.c
index a5eb9fd..5158369 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,
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux