From: Donald Sharp Date: Wed, 30 Nov 2016 13:23:12 +0000 (-0500) Subject: pimd: Fix large integer display of drpriority X-Git-Tag: frr-2.0-rc1~46 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=94d95cde35b09388d5e1d23ae44b129be0b14673;p=matthieu%2Ffrr.git pimd: Fix large integer display of drpriority When displaying drpriority you can enter unsigned integer values from 1-2^32. The display was turning the unsigned value into a signed value and thus we were displaying the wrong value. Ticket: CM-13787 Signed-off-by: Donald Sharp Reviewed-by: David Ahern (cherry picked from commit db17265f1025e3ec578998ad537c33b49ed33cde) Signed-off-by: David Lamparter --- diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c index f1c8930856..037a00c4da 100644 --- a/pimd/pim_vty.c +++ b/pimd/pim_vty.c @@ -148,7 +148,7 @@ int pim_interface_config_write(struct vty *vty) /* IF ip pim drpriority */ if (pim_ifp->pim_dr_priority != PIM_DEFAULT_DR_PRIORITY) { - vty_out(vty, " ip pim drpriority %d%s", pim_ifp->pim_dr_priority, + vty_out(vty, " ip pim drpriority %u%s", pim_ifp->pim_dr_priority, VTY_NEWLINE); ++writes; }