bgpd: use correct specifier to print asn

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2019-02-04 16:50:30 +00:00
parent 41e8603bfa
commit 3b61f61005

View 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);
}