From 228fcecd43c96455d6d4f2ca7e8af4833a3e935c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 7 Dec 2008 16:50:10 +0100 Subject: [PATCH] Don't output too many new lines when displaying LLDP-MED information --- src/lldpctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lldpctl.c b/src/lldpctl.c index a9f33751..171567c8 100644 --- a/src/lldpctl.c +++ b/src/lldpctl.c @@ -334,8 +334,8 @@ display_med(struct lldpd_chassis *chassis) printf("%u", (chassis->c_med_policy & 0x000001C0) >> 6); printf("\n DSCP Value: "); printf("%u", (chassis->c_med_policy & 0x0000003F)); + printf("\n"); } - printf("\n"); if (chassis->c_med_locformat) { printf(" LLDP-MED Location Identification:\n"); switch(chassis->c_med_locformat) { @@ -353,8 +353,8 @@ display_med(struct lldpd_chassis *chassis) } printf("\n data: %s\n", dump(chassis->c_med_locdata, chassis->c_med_locdata_len, 40, ' ')); + printf("\n"); } - printf("\n"); if (chassis->c_med_powtype) { printf(" LLDP-MED Extended Power-over-Ethernet:\n"); printf(" Power Type & Source: "); @@ -399,8 +399,8 @@ display_med(struct lldpd_chassis *chassis) } else { printf("reserved"); } + printf("\n"); } - printf("\n"); if (chassis->c_med_hw || chassis->c_med_sw || chassis->c_med_fw || -- 2.39.5