[binutils-gdb] gprof: print values of mismatched histogram scales
Alan Modra
amodra@sourceware.org
Sun Feb 9 22:28:53 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cb0930a0005f2e4229a0ad253236b432ba95524f
commit cb0930a0005f2e4229a0ad253236b432ba95524f
Author: Richard Allen <rsaxvc@gmail.com>
Date: Sun Feb 9 10:49:00 2025 -0600
gprof: print values of mismatched histogram scales
Signed-off-by: Richard Allen <rsaxvc@gmail.com>
Diff:
---
gprof/hist.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gprof/hist.c b/gprof/hist.c
index c87a5de6b1d..1193b7025e9 100644
--- a/gprof/hist.c
+++ b/gprof/hist.c
@@ -155,8 +155,8 @@ read_histogram_header (histogram *record,
if (fabs (hist_scale - n_hist_scale) > 0.000001)
{
fprintf (stderr,
- _("%s: different scales in histogram records\n"),
- whoami);
+ _("%s: different scales in histogram records: %f != %f\n"),
+ whoami, hist_scale, n_hist_scale);
done (1);
}
}
More information about the Binutils-cvs
mailing list