From: Vincent Bernat Date: Sun, 7 Dec 2008 15:50:10 +0000 (+0100) Subject: Don't output too many new lines when displaying LLDP-MED information X-Git-Tag: 0.3~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=228fcecd43c96455d6d4f2ca7e8af4833a3e935c;p=thirdparty%2Flldpd.git Don't output too many new lines when displaying LLDP-MED information --- 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 ||