summaryrefslogtreecommitdiffstats
path: root/schedutils
diff options
context:
space:
mode:
authorSami Kerola2011-07-17 20:21:40 +0200
committerKarel Zak2011-07-21 17:32:28 +0200
commit8a44fb011d452b44c23d18b7d343266d08cd0dd1 (patch)
tree6ee291f46de29288df66cf54daf1d92dccdf92d8 /schedutils
parenttaskset: coding style fixes (diff)
downloadkernel-qcow2-util-linux-8a44fb011d452b44c23d18b7d343266d08cd0dd1.tar.gz
kernel-qcow2-util-linux-8a44fb011d452b44c23d18b7d343266d08cd0dd1.tar.xz
kernel-qcow2-util-linux-8a44fb011d452b44c23d18b7d343266d08cd0dd1.zip
chrt: add strings to use NLS
Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'schedutils')
-rw-r--r--schedutils/chrt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index b149fcc6b..58b71b534 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);