summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/ChangeLog5
-rw-r--r--runtime/stat-common.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index 84c1abfe..930a1709 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-10 Martin Hunt <hunt@redhat.com>
+
+ * stat-common.c (_stp_stat_print_histogram): Write a
+ newline at the end of the histogram.
+
2006-04-09 Martin Hunt <hunt@redhat.com>
* print.c (_stp_print_flush): Send 'len" bytes
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)