diff options
Diffstat (limited to 'epan/dissectors/packet-ntp.c')
-rw-r--r-- | epan/dissectors/packet-ntp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ntp.c b/epan/dissectors/packet-ntp.c index 824fc29329..eee6257514 100644 --- a/epan/dissectors/packet-ntp.c +++ b/epan/dissectors/packet-ntp.c @@ -781,15 +781,15 @@ dissect_ntp_std(tvbuff_t *tvb, proto_tree *ntp_tree, guint8 flags) */ ppoll = tvb_get_guint8(tvb, 2); if ((ppoll >= 4) && (ppoll <= 17)) { - proto_tree_add_uint_format(ntp_tree, hf_ntp_ppoll, tvb, 2, 1, + proto_tree_add_uint_format_value(ntp_tree, hf_ntp_ppoll, tvb, 2, 1, ppoll, - "Peer Polling Interval: %u (%u sec)", + "%u (%u sec)", ppoll, 1 << ppoll); } else { - proto_tree_add_uint_format(ntp_tree, hf_ntp_ppoll, tvb, 2, 1, + proto_tree_add_uint_format_value(ntp_tree, hf_ntp_ppoll, tvb, 2, 1, ppoll, - "Peer Polling Interval: invalid (%u)", + "invalid (%u)", ppoll); } |