From: Sami Kerola Date: Sun, 17 Jul 2011 18:21:40 +0000 (+0200) Subject: chrt: add strings to use NLS X-Git-Tag: v2.20-rc1~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a44fb011d452b44c23d18b7d343266d08cd0dd1;p=thirdparty%2Futil-linux.git chrt: add strings to use NLS Signed-off-by: Sami Kerola Signed-off-by: Karel Zak --- diff --git a/schedutils/chrt.c b/schedutils/chrt.c index b149fcc6bd..58b71b5340 100644 --- a/schedutils/chrt.c +++ b/schedutils/chrt.c @@ -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);