aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-01-02 15:55:48 +0000
committerNick Clifton <nickc@redhat.com>2002-01-02 15:55:48 +0000
commitaf6dfb5b796c2e987b120550971b12efea54e16b (patch)
tree7565ec779e872a65551f2fb19474e6125ce7b8d0 /gprof
parent5eefb65fea305337aa7325acc53b5a00d0aa9800 (diff)
downloadgdb-af6dfb5b796c2e987b120550971b12efea54e16b.zip
gdb-af6dfb5b796c2e987b120550971b12efea54e16b.tar.gz
gdb-af6dfb5b796c2e987b120550971b12efea54e16b.tar.bz2
Fix spelling typo.
Reformat messages to ease translation into other languages.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog7
-rw-r--r--gprof/cg_print.c4
-rw-r--r--gprof/gmon_io.c12
3 files changed, 15 insertions, 8 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 264dd2d..81b072d 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,10 @@
+2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * cg_print.c (print_header): Fix spelling typo.
+
+ * gmon_io.c (gmon_out_read): Fix formatting of text messages to
+ allow easier translation into other languages.
+
2001-12-21 Nick Clifton <nickc@cambridge.redhat.com>
* configure.in (ALL_LINGUAS): Add sv.
diff --git a/gprof/cg_print.c b/gprof/cg_print.c
index 0a80cca..696a073 100644
--- a/gprof/cg_print.c
+++ b/gprof/cg_print.c
@@ -1,6 +1,6 @@
/* cg_print.c - Print routines for displaying call graphs.
- Copyright 2000, 2001 Free Software Foundation, Inc.
+ Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -75,7 +75,7 @@ DEFUN_VOID (print_header)
printf ("%6.6s %5.5s %7.7s %11.11s %7.7s/%-7.7s %-8.8s\n",
"", "", "", "", _("called"), _("total"), _("parents"));
printf ("%-6.6s %5.5s %7.7s %11.11s %7.7s+%-7.7s %-8.8s\t%5.5s\n",
- _("index"), _("%time"), _("self"), _("descendents"),
+ _("index"), _("%time"), _("self"), _("descendants"),
_("called"), _("self"), _("name"), _("index"));
printf ("%6.6s %5.5s %7.7s %11.11s %7.7s/%-7.7s %-8.8s\n",
"", "", "", "", _("called"), _("total"), _("children"));
diff --git a/gprof/gmon_io.c b/gprof/gmon_io.c
index cff132c..207e3d0 100644
--- a/gprof/gmon_io.c
+++ b/gprof/gmon_io.c
@@ -447,12 +447,12 @@ DEFUN (gmon_out_read, (filename), const char *filename)
{
printf (_("File `%s' (version %d) contains:\n"),
filename, gmon_file_version);
- printf (_("\t%d histogram record%s\n"),
- nhist, nhist == 1 ? "" : "s");
- printf (_("\t%d call-graph record%s\n"),
- narcs, narcs == 1 ? "" : "s");
- printf (_("\t%d basic-block count record%s\n"),
- nbbs, nbbs == 1 ? "" : "s");
+ printf (ngettext ("\t%d histogram record\n",
+ "\t%d histogram records\n", nhist), nhist);
+ printf (ngettext ("\t%d call-graph record\n",
+ "\t%d call-graph records\n", narcs), narcs);
+ printf (ngettext ("\t%d basic-block count record\n",
+ "\t%d basic-block count records\n", nbbs), nbbs);
first_output = FALSE;
}
}