diff options
author | Bill Meier <wmeier@newsguy.com> | 2012-06-27 14:44:00 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2012-06-27 14:44:00 +0000 |
commit | 9c9d57321f2804041c6ee57036a7ed7bd027aa79 (patch) | |
tree | f8034146d7e0e0544af6f4d4f25eb3c73dcde6f1 /epan | |
parent | e42127ce00c6425137ccf77bb8f55f923a670692 (diff) |
Fix compiler warning: "format not a string literal and no format arguments"
svn path=/trunk/; revision=43509
Diffstat (limited to 'epan')
-rw-r--r-- | epan/expert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/expert.c b/epan/expert.c index 2a3cc75092..858b829552 100644 --- a/epan/expert.c +++ b/epan/expert.c @@ -188,10 +188,10 @@ expert_set_info_vformat(packet_info *pinfo, proto_item *pi, int group, int sever ti = proto_tree_add_string(tree, hf_expert_msg, NULL, 0, 0, formatted); PROTO_ITEM_SET_GENERATED(ti); ti = proto_tree_add_uint_format_value(tree, hf_expert_severity, NULL, 0, 0, severity, - val_to_str_const(severity, expert_severity_vals, "Unknown")); + "%s", val_to_str_const(severity, expert_severity_vals, "Unknown")); PROTO_ITEM_SET_GENERATED(ti); ti = proto_tree_add_uint_format_value(tree, hf_expert_group, NULL, 0, 0, group, - val_to_str_const(group, expert_group_vals, "Unknown")); + "%s", val_to_str_const(group, expert_group_vals, "Unknown")); PROTO_ITEM_SET_GENERATED(ti); tap = have_tap_listener(expert_tap); |