]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: print adv_if count with %zu
authorStephen Worley <sworley@nvidia.com>
Tue, 8 Jun 2021 20:27:12 +0000 (16:27 -0400)
committerStephen Worley <sworley@nvidia.com>
Tue, 8 Jun 2021 20:27:12 +0000 (16:27 -0400)
Use the %zu formatter for adv_if count printing for portability.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
zebra/rtadv.c

index 31284166e6f127b87a1828494eb2699692abedcf..8cb0223a46331218a31b47c99640889d1c2f227f 100644 (file)
@@ -953,7 +953,7 @@ static struct adv_if *adv_if_add(struct zebra_vrf *zvrf, const char *name)
        if (IS_ZEBRA_DEBUG_EVENT) {
                struct vrf *vrf = zvrf->vrf;
 
-               zlog_debug("%s: %s:%u IF %s count: %lu", __func__,
+               zlog_debug("%s: %s:%u IF %s count: %zu", __func__,
                           VRF_LOGNAME(vrf), zvrf_id(zvrf), name,
                           adv_if_list_count(&zvrf->rtadv.adv_if));
        }
@@ -977,7 +977,7 @@ static struct adv_if *adv_if_del(struct zebra_vrf *zvrf, const char *name)
        if (IS_ZEBRA_DEBUG_EVENT) {
                struct vrf *vrf = zvrf->vrf;
 
-               zlog_debug("%s: %s:%u IF %s count: %lu", __func__,
+               zlog_debug("%s: %s:%u IF %s count: %zu", __func__,
                           VRF_LOGNAME(vrf), zvrf_id(zvrf), name,
                           adv_if_list_count(&zvrf->rtadv.adv_if));
        }
@@ -1001,7 +1001,7 @@ static struct adv_if *adv_msec_if_add(struct zebra_vrf *zvrf, const char *name)
        if (IS_ZEBRA_DEBUG_EVENT) {
                struct vrf *vrf = zvrf->vrf;
 
-               zlog_debug("%s: %s:%u IF %s count: %lu", __func__,
+               zlog_debug("%s: %s:%u IF %s count: %zu", __func__,
                           VRF_LOGNAME(vrf), zvrf_id(zvrf), name,
                           adv_if_list_count(&zvrf->rtadv.adv_msec_if));
        }
@@ -1025,7 +1025,7 @@ static struct adv_if *adv_msec_if_del(struct zebra_vrf *zvrf, const char *name)
        if (IS_ZEBRA_DEBUG_EVENT) {
                struct vrf *vrf = zvrf->vrf;
 
-               zlog_debug("%s: %s:%u IF %s count: %lu", __func__,
+               zlog_debug("%s: %s:%u IF %s count: %zu", __func__,
                           VRF_LOGNAME(vrf), zvrf_id(zvrf), name,
                           adv_if_list_count(&zvrf->rtadv.adv_msec_if));
        }
@@ -1039,7 +1039,7 @@ static void adv_if_clean(struct zebra_vrf *zvrf)
        if (IS_ZEBRA_DEBUG_EVENT) {
                struct vrf *vrf = zvrf->vrf;
 
-               zlog_debug("%s: %s:%u count: %lu -> 0", __func__,
+               zlog_debug("%s: %s:%u count: %zu -> 0", __func__,
                           VRF_LOGNAME(vrf), zvrf_id(zvrf),
                           adv_if_list_count(&zvrf->rtadv.adv_if));
        }
@@ -1053,7 +1053,7 @@ static void adv_msec_if_clean(struct zebra_vrf *zvrf)
        if (IS_ZEBRA_DEBUG_EVENT) {
                struct vrf *vrf = zvrf->vrf;
 
-               zlog_debug("%s: %s:%u count: %lu -> 0", __func__,
+               zlog_debug("%s: %s:%u count: %zu -> 0", __func__,
                           VRF_LOGNAME(vrf), zvrf_id(zvrf),
                           adv_if_list_count(&zvrf->rtadv.adv_msec_if));
        }