summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2019-02-05 17:05:53 +0100
committerGitHub <noreply@github.com>2019-02-05 17:05:53 +0100
commitf2445bf70d16796d88a0af6202a6c0bd4086988f (patch)
tree761737e26aae0cefd55a1167f4dc4cdd489a5e9b
parentMerge pull request #3725 from donaldsharp/eigrp_metric (diff)
parentbgpd: use correct specifier to print asn (diff)
downloadfrr-f2445bf70d16796d88a0af6202a6c0bd4086988f.tar.xz
frr-f2445bf70d16796d88a0af6202a6c0bd4086988f.zip
Merge pull request #3727 from qlyoung/fix-signed-printspec-bgp-as
bgpd: use correct specifier to print asn
-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);
}