summaryrefslogtreecommitdiffstats
path: root/runtime/tests/maps/iiss.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-05-31 19:56:57 +0000
committerhunt <hunt>2005-05-31 19:56:57 +0000
commita75f0fb713418d4704d0ce9ea892ab939ce9f00f (patch)
tree2c1792f127cc4aab3d70cf95a0337f89f8438e1d /runtime/tests/maps/iiss.c
parent2e4153f6f3908b6746e8e50194d0a6e8e2f35111 (diff)
downloadsystemtap-steved-a75f0fb713418d4704d0ce9ea892ab939ce9f00f.tar.gz
systemtap-steved-a75f0fb713418d4704d0ce9ea892ab939ce9f00f.tar.xz
systemtap-steved-a75f0fb713418d4704d0ce9ea892ab939ce9f00f.zip
added formatting to _stp_map_print() and updated tests.
Diffstat (limited to 'runtime/tests/maps/iiss.c')
-rw-r--r--runtime/tests/maps/iiss.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/tests/maps/iiss.c b/runtime/tests/maps/iiss.c
index e1ec2407..dc034c94 100644
--- a/runtime/tests/maps/iiss.c
+++ b/runtime/tests/maps/iiss.c
@@ -25,26 +25,26 @@ int main ()
_stp_map_key_int64_int64_str (map, 7,8,"Oregon");
_stp_map_set_str (map, "Salem" );
- _stp_map_print (map, "map");
+ _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
_stp_map_key_int64_int64_str (map, -9,-10,"Nevada");
_stp_map_set_str (map, "Carson City" );
- _stp_map_print (map, "map");
+ _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
_stp_map_key_int64_int64_str (map, 5,6,"Washington");
_stp_map_set (map, "Olymp" );
- _stp_map_print (map, "map");
+ _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
_stp_map_add_str (map, "ia" );
- _stp_map_print (map, "map");
+ _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
_stp_map_key_int64_int64_str (map, -9,-10,"Nevada");
_stp_map_key_del (map);
- _stp_map_print (map, "map");
+ _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
_stp_map_key_int64_int64_str (map, 0,0,"");
_stp_map_set_str (map, "XX" );
- _stp_map_print (map, "map");
+ _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
_stp_map_del (map);
return 0;