]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chrt: add strings to use NLS
authorSami Kerola <kerolasa@iki.fi>
Sun, 17 Jul 2011 18:21:40 +0000 (20:21 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Jul 2011 15:32:28 +0000 (17:32 +0200)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
schedutils/chrt.c

index b149fcc6bd1bbb3446f9dbf4dc6b8ca1f1427caf..58b71b5340575998ed61a45ec198f9a425eb81b4 100644 (file)
@@ -140,7 +140,7 @@ static void show_rt_info(pid_t pid, int isnew)
                break;
 #endif
        default:
-               printf(_("unknown\n"));
+               warnx(_("unknown scheduling policy"));
        }
 
        if (sched_getparam(pid, &sp))
@@ -282,7 +282,7 @@ int main(int argc, char **argv)
                        struct proc_tasks *ts = proc_open_tasks(pid);
 
                        if (!ts)
-                               err(EXIT_FAILURE, "cannot obtain the list of tasks");
+                               err(EXIT_FAILURE, _("cannot obtain the list of tasks"));
                        while (!proc_next_tid(ts, &tid))
                                show_rt_info(tid, FALSE);
                        proc_close_tasks(ts);
@@ -315,7 +315,7 @@ int main(int argc, char **argv)
                struct proc_tasks *ts = proc_open_tasks(pid);
 
                if (!ts)
-                       err(EXIT_FAILURE, "cannot obtain the list of tasks");
+                       err(EXIT_FAILURE, _("cannot obtain the list of tasks"));
                while (!proc_next_tid(ts, &tid))
                        if (sched_setscheduler(tid, policy, &sp) == -1)
                                err(EXIT_FAILURE, _("failed to set tid %d's policy"), tid);