summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-04 17:50:30 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-02-04 17:50:30 +0100
commit3b61f61005f6ba6ec1f9f32b6888bdaa0baa2ff6 (patch)
tree268f66bf9e23082fdfa6020d713d11e5130afeae /bgpd/bgp_vty.c
parentMerge pull request #3714 from donaldsharp/thread_strlcpy (diff)
downloadfrr-3b61f61005f6ba6ec1f9f32b6888bdaa0baa2ff6.tar.xz
frr-3b61f61005f6ba6ec1f9f32b6888bdaa0baa2ff6.zip
bgpd: use correct specifier to print asn
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_vty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 43adf3424..a6d985ab9 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -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);
}