]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: cleanup _() usage in synchronize_to_clock_tick_rtc()
authorKarel Zak <kzak@redhat.com>
Thu, 21 Mar 2013 07:56:15 +0000 (08:56 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Mar 2013 07:56:15 +0000 (08:56 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/hwclock-rtc.c

index 4d628a152e65a4a85f7fe72920b2b7706baeddc7..a22ce4c29ffb7f793737f530ce85cf78134e2c7f 100644 (file)
@@ -276,8 +276,7 @@ static int synchronize_to_clock_tick_rtc(void)
                         * system clock, so aren't at the user's disposal.
                         */
                        if (debug)
-                               printf(_
-                                      ("%s does not have interrupt functions. "),
+                               printf(_("%s does not have interrupt functions. "),
                                       rtc_dev_name);
                        ret = busywait_for_rtc_clock_tick(rtc_fd);
                } else if (rc == 0) {
@@ -288,8 +287,7 @@ static int synchronize_to_clock_tick_rtc(void)
                        rc = read(rtc_fd, &dummy, sizeof(dummy));
                        ret = 1;
                        if (rc == -1)
-                               warn(_
-                                    ("read() to %s to wait for clock tick failed"),
+                               warn(_("read() to %s to wait for clock tick failed"),
                                     rtc_dev_name);
                        else
                                ret = 0;
@@ -313,8 +311,7 @@ static int synchronize_to_clock_tick_rtc(void)
                        rc = select(rtc_fd + 1, &rfds, NULL, NULL, &tv);
                        ret = 1;
                        if (rc == -1)
-                               warn(_
-                                    ("select() to %s to wait for clock tick failed"),
+                               warn(_("select() to %s to wait for clock tick failed"),
                                     rtc_dev_name);
                        else if (rc == 0 && debug)
                                printf(_("select() to %s to wait for clock tick timed out"),
@@ -326,12 +323,10 @@ static int synchronize_to_clock_tick_rtc(void)
                        /* Turn off update interrupts */
                        rc = ioctl(rtc_fd, RTC_UIE_OFF, 0);
                        if (rc == -1)
-                               warn(_
-                                    ("ioctl() to %s to turn off update interrupts failed"),
+                               warn(_("ioctl() to %s to turn off update interrupts failed"),
                                     rtc_dev_name);
                } else {
-                       warn(_
-                            ("ioctl() to %s to turn on update interrupts "
+                       warn(_("ioctl() to %s to turn on update interrupts "
                              "failed unexpectedly"), rtc_dev_name);
                        ret = 1;
                }