From 8a44fb011d452b44c23d18b7d343266d08cd0dd1 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 17 Jul 2011 20:21:40 +0200 Subject: [PATCH] chrt: add strings to use NLS Signed-off-by: Sami Kerola Signed-off-by: Karel Zak --- schedutils/chrt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.3