From 4f5013515dedebb7e9c54c5dc32f2d44e6215e50 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 14 May 2015 11:05:43 -0500 Subject: [PATCH] monitor: Shorten up printed strings HT Operation Information strings wrap on 80 character terminals, so shorten up the printed string to avoid that in most cases --- monitor/nlmon.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 970e3557..acb856c0 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -1083,24 +1083,24 @@ static void print_ie_ht_operation(unsigned int level, const char *label, i = bytes[1] & 0x03; print_attr (level + 1, - "HT Operation Information: Secondary Channel Offset: %s", + "Information: Secondary Channel Offset: %s", secondary_offset[i]); i = (bytes[1] & 0x04) >> 2; print_attr (level + 1, - "HT Operation Information: Channel width: bit 2: %s", + "Information: Channel width: bit 2: %s", channel_width[i]); memset(bytemask, 0, sizeof(bytemask)); bytemask[0] = 0xf8; print_ie_bitfield(level + 1, - "HT Operation Information", &bytes[1], bytemask, + "Information", &bytes[1], bytemask, sizeof(bytemask), ht_ops_bitfield); i = bytes[2] & 0x03; print_attr(level + 1, - "HT Operation Information: HT Protection: bits 8 - 9: %s", + "Information: HT Protection: bits 8 - 9: %s", ht_protection[i]); bytemask[0] = 0x00; @@ -1108,7 +1108,7 @@ static void print_ie_ht_operation(unsigned int level, const char *label, bytemask[2] = 0xff; bytemask[3] = 0xff; bytemask[4] = 0xff; - print_ie_bitfield(level + 1, "HT Operation Information", &bytes[1], + print_ie_bitfield(level + 1, "Information", &bytes[1], bytemask, sizeof(bytemask), ht_ops_bitfield); print_ie_mcs(level + 1, "Basic MCS set", &bytes[6], 16);