summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcstat/pmcpl_gprof.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2011-11-15 06:44:07 +0000
committerobrien <obrien@FreeBSD.org>2011-11-15 06:44:07 +0000
commit645c15928a6a22d853a33666471d09218dd355ca (patch)
treecbd8ed43ef703bf724c052cbf7053975612ec9cc /usr.sbin/pmcstat/pmcpl_gprof.c
parent5509fbb6318be0fa4bcd3ca15c669f0ba0231d8a (diff)
downloadFreeBSD-src-645c15928a6a22d853a33666471d09218dd355ca.zip
FreeBSD-src-645c15928a6a22d853a33666471d09218dd355ca.tar.gz
Improve the chances of matching an outputted string with the line of code.
Diffstat (limited to 'usr.sbin/pmcstat/pmcpl_gprof.c')
-rw-r--r--usr.sbin/pmcstat/pmcpl_gprof.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/pmcstat/pmcpl_gprof.c b/usr.sbin/pmcstat/pmcpl_gprof.c
index 2027ecf..8e4cc79 100644
--- a/usr.sbin/pmcstat/pmcpl_gprof.c
+++ b/usr.sbin/pmcstat/pmcpl_gprof.c
@@ -333,8 +333,9 @@ pmcpl_gmon_initimage(struct pmcstat_image *pi)
count = 0;
do {
if (++count > 999)
- errx(EX_CANTCREAT, "ERROR: cannot create a "
- "gmon file for \"%s\"", name);
+ errx(EX_CANTCREAT,
+ "ERROR: cannot create a gmon file for"
+ " \"%s\"", name);
snprintf(name, sizeof(name), "%.*s~%3.3d.gmon",
nlen, sn, count);
if (pmcstat_string_lookup(name) == NULL) {
@@ -516,8 +517,8 @@ pmcpl_gmon_shutdown(FILE *mf)
pgf->pgf_pmcid),
pgf->pgf_nsamples);
if (pgf->pgf_overflow && args.pa_verbosity >= 1)
- warnx("WARNING: profile \"%s\" "
- "overflowed.",
+ warnx(
+"WARNING: profile \"%s\" overflowed.",
pmcstat_string_unintern(
pgf->pgf_name));
}
OpenPOWER on IntegriCloud