]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Display unsigned ints 1334/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 18 Oct 2017 00:57:40 +0000 (20:57 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 18 Oct 2017 00:57:40 +0000 (20:57 -0400)
We are storing data as an unsigned int and we should not
display it as a signed number.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_vty.c

index c41039e7c1cbdce8e37fdfe297cc767045d9212d..02a194050cc65e91310d5d245761fcb0aa8c7bd3 100644 (file)
@@ -7068,7 +7068,7 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
                                vty_out(vty, "%*s", max_neighbor_width - len,
                                        " ");
 
-                       vty_out(vty, "4 %10u %7d %7d %8" PRIu64 " %4d %4zd %8s",
+                       vty_out(vty, "4 %10u %7u %7u %8" PRIu64 " %4d %4zd %8s",
                                peer->as,
                                peer->open_in + peer->update_in
                                        + peer->keepalive_in + peer->notify_in