diff --git a/epan/dissectors/packet-synphasor.c b/epan/dissectors/packet-synphasor.c index 09fbb31d89..8f7f85aa33 100644 --- a/epan/dissectors/packet-synphasor.c +++ b/epan/dissectors/packet-synphasor.c @@ -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; diff --git a/plugins/gryphon/packet-gryphon.c b/plugins/gryphon/packet-gryphon.c index c1ca99cf99..28e0a75326 100644 --- a/plugins/gryphon/packet-gryphon.c +++ b/plugins/gryphon/packet-gryphon.c @@ -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);