summaryrefslogtreecommitdiffstats
path: root/sys-utils/ipcs.c
diff options
context:
space:
mode:
authorFrancesco Cosoleto2010-06-27 14:24:33 +0200
committerKarel Zak2010-06-30 12:51:35 +0200
commit4163ab187d26cbe7887dfabf8724c887de94e244 (patch)
treeff3e07e5fd3106514ccb05b0c6af13d0b2ffec5f /sys-utils/ipcs.c
parentfsck: fix typo in fsck.8 (diff)
downloadkernel-qcow2-util-linux-4163ab187d26cbe7887dfabf8724c887de94e244.tar.gz
kernel-qcow2-util-linux-4163ab187d26cbe7887dfabf8724c887de94e244.tar.xz
kernel-qcow2-util-linux-4163ab187d26cbe7887dfabf8724c887de94e244.zip
ipcs: advise translators a different output format
Shared memory status output format need changes but there are backward compatibility problems. This is a invite to apply in translations the same style used for the rest of the summaries as well as for the limits reported by -l option. Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Diffstat (limited to 'sys-utils/ipcs.c')
-rw-r--r--sys-utils/ipcs.c24
1 files changed, 19 insertions, 5 deletions
diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c
index 60cfe4175..2ef5788de 100644
--- a/sys-utils/ipcs.c
+++ b/sys-utils/ipcs.c
@@ -288,11 +288,25 @@ void do_shm (char format)
case STATUS:
printf (_("------ Shared Memory Status --------\n"));
- printf (_("segments allocated %d\n"), shm_info.used_ids);
- printf (_("pages allocated %ld\n"), shm_info.shm_tot);
- printf (_("pages resident %ld\n"), shm_info.shm_rss);
- printf (_("pages swapped %ld\n"), shm_info.shm_swp);
- printf (_("Swap performance: %ld attempts\t %ld successes\n"),
+ /* TRANSLATORS: This output format is mantained for backward compatibility
+ as ipcs is used in scripts. For consistency with the rest, the translated
+ form can follow this model:
+
+ "segments allocated = %d\n"
+ "pages allocated = %ld\n"
+ "pages resident = %ld\n"
+ "pages swapped = %ld\n"
+ "swap performance = %ld attempts, %ld successes\n"
+ */
+ printf (_("segments allocated %d\n"
+ "pages allocated %ld\n"
+ "pages resident %ld\n"
+ "pages swapped %ld\n"
+ "Swap performance: %ld attempts\t %ld successes\n"),
+ shm_info.used_ids,
+ shm_info.shm_tot,
+ shm_info.shm_rss,
+ shm_info.shm_swp,
shm_info.swap_attempts, shm_info.swap_successes);
return;