]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Fix confederation identifier unsigned display
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 16 Dec 2018 14:43:40 +0000 (09:43 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 16 Dec 2018 14:43:40 +0000 (09:43 -0500)
The confederation identifier is a `as_t` type which is a
uint32_t underneath the covers.  Display it using a %u

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

index 8b8a2c4d81f093becb502251f9d574cf04795801..7a3afbd18d543fa0bf99e30ba168e553c766c152 100644 (file)
@@ -7557,7 +7557,7 @@ int bgp_config_write(struct vty *vty)
 
                /* Confederation identifier*/
                if (CHECK_FLAG(bgp->config, BGP_CONFIG_CONFEDERATION))
-                       vty_out(vty, " bgp confederation identifier %i\n",
+                       vty_out(vty, " bgp confederation identifier %u\n",
                                bgp->confed_id);
 
                /* Confederation peer */