diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-04-06 02:49:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-04-06 02:49:18 +0000 |
commit | 252178ed7e8ce1486147de8bea76ea0e0f2a29f8 (patch) | |
tree | 4ae1bf3c954333ffeb9ccef92d5e34d5347a847a /plugins | |
parent | b87424fa7dc22984bde480af71fad58d6ae4c7fb (diff) | |
download | wireshark-252178ed7e8ce1486147de8bea76ea0e0f2a29f8.tar.gz |
The third argument to val_to_str() is a format string that gets passed
the value that couldn't be mapped to a string - it's an integer and
needs to be printed with an integer format. Fixes bug 4644.
svn path=/trunk/; revision=32396
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/docsis/packet-bpkmrsp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/docsis/packet-bpkmrsp.c b/plugins/docsis/packet-bpkmrsp.c index 14d89f0deb..c92e5f2bce 100644 --- a/plugins/docsis/packet-bpkmrsp.c +++ b/plugins/docsis/packet-bpkmrsp.c @@ -76,7 +76,7 @@ dissect_bpkmrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) code = tvb_get_guint8 (tvb, 0); col_add_fstr (pinfo->cinfo, COL_INFO, "BPKM Response (%s)", - val_to_str (code, code_field_vals, "%s")); + val_to_str (code, code_field_vals, "Unknown code %u")); if (tree) { @@ -95,9 +95,6 @@ dissect_bpkmrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) /* Code to Call subdissector */ attrs_tvb = tvb_new_subset_remaining (tvb, 4); call_dissector (attrs_handle, attrs_tvb, pinfo, tree); - - - } |