diff options
author | hunt <hunt> | 2005-07-01 19:21:02 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-07-01 19:21:02 +0000 |
commit | 9a45e491a7365db5178c4b6c33804ce3fc07ffe0 (patch) | |
tree | c1124725acd64bcf997f2d3035bcfb335bd6858e /runtime/map-stat.c | |
parent | 5c826f9de142a9d4558e0b3aefab9c90d70c8c54 (diff) | |
download | systemtap-steved-9a45e491a7365db5178c4b6c33804ce3fc07ffe0.tar.gz systemtap-steved-9a45e491a7365db5178c4b6c33804ce3fc07ffe0.tar.xz systemtap-steved-9a45e491a7365db5178c4b6c33804ce3fc07ffe0.zip |
2005-07-01 Martin Hunt <hunt@redhat.com>
* map.c (_stp_map_new): Call _stp_error() on a bad map type.
Comment out dbug()s.
* map-stat.c (_stp_map_new_hstat_log): Call _stp_warn().
(_stp_map_new_hstat_linear): Ditto.
* map-int.c: Comment out dbug()s.
* map-str.c: Comment out dbug()s.
* map-keys.c: Use _stp_warn(). Comment out dbug()s.
Diffstat (limited to 'runtime/map-stat.c')
-rw-r--r-- | runtime/map-stat.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/runtime/map-stat.c b/runtime/map-stat.c index a98f8b87..ea76d654 100644 --- a/runtime/map-stat.c +++ b/runtime/map-stat.c @@ -1,4 +1,12 @@ -/* -*- linux-c -*- */ +/* -*- linux-c -*- + * map functions to handle statistics + * Copyright (C) 2005 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 + * Public License (GPL); either version 2, or (at your option) any + * later version. + */ /** @file map-stat.c * @brief Map functions to set and get stats @@ -48,7 +56,7 @@ static MAP _stp_map_new_hstat_log (unsigned max_entries, int key_size, int bucke m->hist_type = HIST_LOG; m->hist_buckets = buckets; if (buckets < 1 || buckets > 64) { - dbug ("histogram: Bad number of buckets. Must be between 1 and 64\n"); + _stp_warn("histogram: Bad number of buckets. Must be between 1 and 64\n"); m->hist_type = HIST_NONE; return m; } @@ -74,7 +82,7 @@ static MAP _stp_map_new_hstat_linear (unsigned max_entries, int ksize, int start m->hist_int = interval; m->hist_buckets = buckets; if (m->hist_buckets <= 0) { - dbug ("histogram: bad stop, start and/or interval\n"); + _stp_warn("histogram: bad stop, start and/or interval\n"); m->hist_type = HIST_NONE; return m; } |