]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: use correct specifier to print asn
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 4 Feb 2019 16:50:30 +0000 (16:50 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 4 Feb 2019 16:50:30 +0000 (16:50 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_vty.c

index 43adf342473c4b82ec84752d63d6c32e61b899ff..a6d985ab9f5e051c55780683d4cc408f75d5c89c 100644 (file)
@@ -11650,11 +11650,11 @@ static int bgp_show_one_peer_group(struct vty *vty, struct peer_group *group)
        conf = group->conf;
 
        if (conf->as_type == AS_SPECIFIED || conf->as_type == AS_EXTERNAL) {
-               vty_out(vty, "\nBGP peer-group %s, remote AS %d\n", group->name,
-                       conf->as);
+               vty_out(vty, "\nBGP peer-group %s, remote AS %" PRIu32 "\n",
+                       group->name, conf->as);
        } else if (conf->as_type == AS_INTERNAL) {
-               vty_out(vty, "\nBGP peer-group %s, remote AS %d\n", group->name,
-                       group->bgp->as);
+               vty_out(vty, "\nBGP peer-group %s, remote AS %" PRIu32 "\n",
+                       group->name, group->bgp->as);
        } else {
                vty_out(vty, "\nBGP peer-group %s\n", group->name);
        }