From f9e151dddb7c1e4e0590c3988671c4f546c49404 Mon Sep 17 00:00:00 2001 From: Pedro Ribeiro Date: Fri, 3 Oct 2008 08:57:43 +0200 Subject: [PATCH] hwclock: several strings without gettext calls Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak --- hwclock/cmos.c | 8 ++++---- hwclock/hwclock.c | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/hwclock/cmos.c b/hwclock/cmos.c index ca3ca61e..c45a5045 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); diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c index 48b47ade..2749c0fc 100644 --- a/hwclock/hwclock.c +++ b/hwclock/hwclock.c @@ -922,18 +922,18 @@ save_adjtime(const struct adjtime adjtime, const bool testing) { adjfile = fopen(adj_file_name, "w"); if (adjfile == NULL) { - outsyserr("Could not open file with the clock adjustment parameters " - "in it (%s) for writing", adj_file_name); + outsyserr(_("Could not open file with the clock adjustment parameters " + "in it (%s) for writing"), adj_file_name); err = 1; } else { if (fputs(newfile, adjfile) < 0) { - outsyserr("Could not update file with the clock adjustment " - "parameters (%s) in it", adj_file_name); + outsyserr(_("Could not update file with the clock adjustment " + "parameters (%s) in it"), adj_file_name); err = 1; } if (fclose(adjfile) < 0) { - outsyserr("Could not update file with the clock adjustment " - "parameters (%s) in it", adj_file_name); + outsyserr(_("Could not update file with the clock adjustment " + "parameters (%s) in it"), adj_file_name); err = 1; } } @@ -987,8 +987,8 @@ do_adjustment(struct adjtime *adjtime_p, adjtime_p->dirty = TRUE; } else if (adjtime_p->last_adj_time == 0) { if (debug) - printf("Not setting clock because last adjustment time is zero, " - "so history is bad."); + printf(_("Not setting clock because last adjustment time is zero, " + "so history is bad.")); } else { int adjustment; /* Number of seconds we must insert in the Hardware Clock */ -- 2.39.5