summaryrefslogtreecommitdiffstats
path: root/runtime/stat-common.c
diff options
context:
space:
mode:
authorhunt <hunt>2006-04-11 04:23:14 +0000
committerhunt <hunt>2006-04-11 04:23:14 +0000
commitc00320eaf4f2b6a8077b109b0fe5b267b1e55b4a (patch)
treec9c150b1ffc22a13b49dfa7fc7a506fd0b47d1a6 /runtime/stat-common.c
parent5fe3e97fe9d493543a9894b82d4bb968e9ee9ce9 (diff)
downloadsystemtap-steved-c00320eaf4f2b6a8077b109b0fe5b267b1e55b4a.tar.gz
systemtap-steved-c00320eaf4f2b6a8077b109b0fe5b267b1e55b4a.tar.xz
systemtap-steved-c00320eaf4f2b6a8077b109b0fe5b267b1e55b4a.zip
2006-04-10 Martin Hunt <hunt@redhat.com>
* stat-common.c (_stp_stat_print_histogram): Write a newline at the end of the histogram.
Diffstat (limited to 'runtime/stat-common.c')
-rw-r--r--runtime/stat-common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/stat-common.c b/runtime/stat-common.c
index 94f1bdfa..edab9aa4 100644
--- a/runtime/stat-common.c
+++ b/runtime/stat-common.c
@@ -1,6 +1,6 @@
/* -*- linux-c -*-
* common stats functions for aggragations and maps
- * Copyright (C) 2005 Red Hat Inc.
+ * Copyright (C) 2005, 2006 Red Hat Inc.
*
* This file is part of systemtap, and is free software. You can
* redistribute it and/or modify it under the terms of the GNU General
@@ -153,7 +153,6 @@ static void _stp_stat_print_histogram (Hist st, stat *sd)
_stp_print_cstr("value |");
reprint (HIST_WIDTH, "-");
_stp_print_cstr (" count\n");
- _stp_print_flush();
if (st->type == HIST_LINEAR)
val = st->start;
else
@@ -179,6 +178,8 @@ static void _stp_stat_print_histogram (Hist st, stat *sd)
else
val *= 2;
}
+ _stp_print_cstr ("\n");
+ _stp_print_flush();
}
static void _stp_stat_print_valtype (char *fmt, Hist st, stat *sd, int cpu)