Fixed a printf modifier to remove a warning from clang.

svn path=/trunk/; revision=34784
This commit is contained in:
Stig Bjørlykke 2010-11-05 08:04:24 +00:00
parent 8722e8576b
commit 75c2052a01
2 changed files with 3 additions and 3 deletions

View File

@ -779,9 +779,9 @@ static int dissect_config_frame(tvbuff_t *tvb, proto_item *config_item)
gint16 tmp = tvb_get_ntohs(tvb, offset);
temp_item = proto_tree_add_text(config_tree, tvb, offset, 2, "Rate of transmission: "); offset += 2;
if (tmp > 0)
proto_item_append_text(temp_item, "%"G_GUINT16_FORMAT" frame(s) per second", tmp);
proto_item_append_text(temp_item, "%"G_GINT16_FORMAT" frame(s) per second", tmp);
else
proto_item_append_text(temp_item, "1 frame per %"G_GUINT16_FORMAT" second(s)", -tmp);
proto_item_append_text(temp_item, "1 frame per %"G_GINT16_FORMAT" second(s)", (gint16)-tmp);
}
return offset;

View File

@ -1594,7 +1594,7 @@ cmd_modresp(tvbuff_t *tvb, int offset, proto_tree *pt)
proto_tree_add_text(pt, tvb, offset, 1, "Response handle: %u",
resp_handle);
else if (dest)
proto_tree_add_text(pt, tvb, offset, 1, "Response handles: all on channel %hd", dest);
proto_tree_add_text(pt, tvb, offset, 1, "Response handles: all on channel %hhd", dest);
else
proto_tree_add_text(pt, tvb, offset, 1, "Response handles: all");
action = tvb_get_guint8(tvb, offset+1);