From 9a45e491a7365db5178c4b6c33804ce3fc07ffe0 Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 1 Jul 2005 19:21:02 +0000 Subject: 2005-07-01 Martin Hunt * 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. --- runtime/map-str.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/map-str.c') diff --git a/runtime/map-str.c b/runtime/map-str.c index 344feeb6..e5e5b5e4 100644 --- a/runtime/map-str.c +++ b/runtime/map-str.c @@ -36,7 +36,7 @@ void __stp_map_set_str (MAP map, char *val, int add) return; /* set the value */ - dbug ("m=%lx offset=%lx\n", (long)m, (long)map->data_offset); + //dbug ("m=%lx offset=%lx\n", (long)m, (long)map->data_offset); str_copy((void *)((long)m + map->data_offset), val); } else { if (map->key == NULL) @@ -94,7 +94,7 @@ char *_stp_map_get_str (MAP map) struct map_node *m; if (map == NULL || map->create || map->key == NULL) return 0; - dbug ("key %lx\n", (long)map->key); + //dbug ("key %lx\n", (long)map->key); m = (struct map_node *)map->key; return (char *)((long)m + map->data_offset); } -- cgit