summaryrefslogtreecommitdiffstats
path: root/hwclock/cmos.c
diff options
context:
space:
mode:
authorPedro Ribeiro2008-10-03 08:57:43 +0200
committerKarel Zak2008-10-03 08:57:43 +0200
commitf9e151dddb7c1e4e0590c3988671c4f546c49404 (patch)
tree7131013a38913e1ccfef0f18bfdc32b0f2fe859b /hwclock/cmos.c
parentfdisk: several strings without gettext calls (diff)
downloadkernel-qcow2-util-linux-f9e151dddb7c1e4e0590c3988671c4f546c49404.tar.gz
kernel-qcow2-util-linux-f9e151dddb7c1e4e0590c3988671c4f546c49404.tar.xz
kernel-qcow2-util-linux-f9e151dddb7c1e4e0590c3988671c4f546c49404.zip
hwclock: several strings without gettext calls
Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'hwclock/cmos.c')
-rw-r--r--hwclock/cmos.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hwclock/cmos.c b/hwclock/cmos.c
index ca3ca61ed..c45a5045e 100644
--- a/hwclock/cmos.c
+++ b/hwclock/cmos.c
@@ -291,10 +291,10 @@ unsigned long cmos_read(unsigned long reg)
unsigned char v = reg | 0x80;
lseek(dev_port_fd, clock_ctl_addr, 0);
if (write(dev_port_fd, &v, 1) == -1 && debug)
- printf("cmos_read(): write to control address %X failed: %s\n", clock_ctl_addr, strerror(errno));
+ printf(_("cmos_read(): write to control address %X failed: %s\n"), clock_ctl_addr, strerror(errno));
lseek(dev_port_fd, clock_data_addr, 0);
if (read(dev_port_fd, &v, 1) == -1 && debug)
- printf("cmos_read(): read data address %X failed: %s\n", clock_data_addr, strerror(errno));
+ printf(_("cmos_read(): read data address %X failed: %s\n"), clock_data_addr, strerror(errno));
return v;
} else {
/* We only want to read CMOS data, but unfortunately
@@ -325,11 +325,11 @@ unsigned long cmos_write(unsigned long reg, unsigned long val)
unsigned char v = reg | 0x80;
lseek(dev_port_fd, clock_ctl_addr, 0);
if (write(dev_port_fd, &v, 1) == -1 && debug)
- printf("cmos_write(): write to control address %X failed: %s\n", clock_ctl_addr, strerror(errno));
+ printf(_("cmos_write(): write to control address %X failed: %s\n"), clock_ctl_addr, strerror(errno));
v = (val & 0xff);
lseek(dev_port_fd, clock_data_addr, 0);
if (write(dev_port_fd, &v, 1) == -1 && debug)
- printf("cmos_write(): write to data address %X failed: %s\n", clock_data_addr, strerror(errno));
+ printf(_("cmos_write(): write to data address %X failed: %s\n"), clock_data_addr, strerror(errno));
} else {
outb (reg, clock_ctl_addr);
outb (val, clock_data_addr);