Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/altq/altqstat altqstat, cbq: follow uint64_t changes



details:   https://anonhg.NetBSD.org/src/rev/54adaba1647b
branches:  trunk
changeset: 984751:54adaba1647b
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Jul 21 06:48:28 2021 +0000

description:
altqstat, cbq: follow uint64_t changes

PR kern/56319

diffstat:

 usr.sbin/altq/altqstat/qdisc_cbq.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 977a50e10a89 -r 54adaba1647b usr.sbin/altq/altqstat/qdisc_cbq.c
--- a/usr.sbin/altq/altqstat/qdisc_cbq.c        Wed Jul 21 06:47:33 2021 +0000
+++ b/usr.sbin/altq/altqstat/qdisc_cbq.c        Wed Jul 21 06:48:28 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: qdisc_cbq.c,v 1.10 2021/07/21 06:45:10 ozaki-r Exp $   */
+/*     $NetBSD: qdisc_cbq.c,v 1.11 2021/07/21 06:48:28 ozaki-r Exp $   */
 /*     $KAME: qdisc_cbq.c,v 1.7 2003/09/17 14:27:37 kjc Exp $  */
 /*
  * Copyright (C) 1999-2000
@@ -105,9 +105,9 @@
 
                        printf("\tpriority: %d depth: %d",
                               sp->priority, sp->depth);
-                       printf(" offtime: %ld [ns] wrr_allot: %d bytes\n",
+                       printf(" offtime: %"PRIi64" [ns] wrr_allot: %d bytes\n",
                               sp->offtime, sp->wrr_allot);
-                       printf("\tpsPerByte: %ld", sp->ps_per_byte);
+                       printf("\tpsPerByte: %"PRIu64, sp->ps_per_byte);
                        printf("\t(%sbps)", rate2str(flow_bps));
                        if (lp->handle != NULL_CLASS_HANDLE) {
                                printf(",\tMeasured: %s [bps]\n",
@@ -139,7 +139,7 @@
                               sp->maxidle >> RM_FILTER_GAIN,
                               sp->minidle / RM_POWER);
 #else
-                       printf("\tAvgIdle: %ld [ns],\t(maxidle: %ld minidle: %ld [ns])\n",
+                       printf("\tAvgIdle: %"PRIi64" [ns],\t(maxidle: %"PRIi64" minidle: %"PRIi64" [ns])\n",
                               sp->avgidle, sp->maxidle, sp->minidle);
 #endif
                }



Home | Main Index | Thread Index | Old Index