summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1999-08-09 23:01:54 +0000
committerbrian <brian@cvs.openbsd.org>1999-08-09 23:01:54 +0000
commit3af1f83e42d56d877eaadf81e99c15d25fa0c4a4 (patch)
treeb9644579a8ae920efafa7bac922b35c42c3adc87 /usr.sbin/ppp
parent8041968fca29692660edd7b48145390b406f95c5 (diff)
Change printf formats %q[du] -> %ll[du]
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/ppp/bundle.c6
-rw-r--r--usr.sbin/ppp/ppp/mbuf.c4
-rw-r--r--usr.sbin/ppp/ppp/throughput.c16
3 files changed, 13 insertions, 13 deletions
diff --git a/usr.sbin/ppp/ppp/bundle.c b/usr.sbin/ppp/ppp/bundle.c
index 84cc00da1c0..a9387419f99 100644
--- a/usr.sbin/ppp/ppp/bundle.c
+++ b/usr.sbin/ppp/ppp/bundle.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bundle.c,v 1.24 1999/08/05 10:32:13 brian Exp $
+ * $Id: bundle.c,v 1.25 1999/08/09 23:01:52 brian Exp $
*/
#include <sys/param.h>
@@ -1020,7 +1020,7 @@ bundle_ShowLinks(struct cmdargs const *arg)
prompt_Printf(arg->prompt, "Name: %s [%s, %s]",
dl->name, mode2Nam(dl->physical->type), datalink_State(dl));
if (dl->physical->link.throughput.rolling && dl->state == DATALINK_OPEN)
- prompt_Printf(arg->prompt, " bandwidth %d, %qu bps (%qu bytes/sec)",
+ prompt_Printf(arg->prompt, " bandwidth %d, %llu bps (%llu bytes/sec)",
dl->mp.bandwidth ? dl->mp.bandwidth :
physical_GetSpeed(dl->physical),
dl->physical->link.throughput.OctetsPerSecond * 8,
@@ -1033,7 +1033,7 @@ bundle_ShowLinks(struct cmdargs const *arg)
if (secs > t->SamplePeriod)
secs = t->SamplePeriod;
if (secs)
- prompt_Printf(arg->prompt, "Currently averaging %qu bps (%qu bytes/sec)"
+ prompt_Printf(arg->prompt, "Currently averaging %llu bps (%llu bytes/sec)"
" over the last %d secs\n", t->OctetsPerSecond * 8,
t->OctetsPerSecond, secs);
diff --git a/usr.sbin/ppp/ppp/mbuf.c b/usr.sbin/ppp/ppp/mbuf.c
index d1a4c732561..b52db7ad6ab 100644
--- a/usr.sbin/ppp/ppp/mbuf.c
+++ b/usr.sbin/ppp/ppp/mbuf.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: mbuf.c,v 1.6 1999/06/02 15:58:41 brian Exp $
+ * $Id: mbuf.c,v 1.7 1999/08/09 23:01:52 brian Exp $
*
*/
#include <sys/types.h>
@@ -240,7 +240,7 @@ mbuf_Show(struct cmdargs const *arg)
prompt_Printf(arg->prompt, "%10.10s: %04d (%06d)\n",
mbuftype[i], MemMap[i].fragments, MemMap[i].octets);
- prompt_Printf(arg->prompt, "Mallocs: %qu, Frees: %qu\n",
+ prompt_Printf(arg->prompt, "Mallocs: %llu, Frees: %llu\n",
mbuf_Mallocs, mbuf_Frees);
return 0;
diff --git a/usr.sbin/ppp/ppp/throughput.c b/usr.sbin/ppp/ppp/throughput.c
index c6596800e94..3a389e45f3b 100644
--- a/usr.sbin/ppp/ppp/throughput.c
+++ b/usr.sbin/ppp/ppp/throughput.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: throughput.c,v 1.5 1999/08/06 01:34:52 brian Exp $
+ * $Id: throughput.c,v 1.6 1999/08/09 23:01:53 brian Exp $
*/
#include <sys/types.h>
@@ -101,7 +101,7 @@ throughput_disp(struct pppThroughput *t, struct prompt *prompt)
prompt_Printf(prompt, "\n");
divisor = secs_up ? secs_up : 1;
- prompt_Printf(prompt, "%qu octets in, %qu octets out\n",
+ prompt_Printf(prompt, "%llu octets in, %llu octets out\n",
t->OctetsIn, t->OctetsOut);
if (t->rolling) {
prompt_Printf(prompt, " overall %6qu bytes/sec\n",
@@ -113,7 +113,7 @@ throughput_disp(struct pppThroughput *t, struct prompt *prompt)
prompt_Printf(prompt, " peak %6qu bytes/sec on %s",
t->BestOctetsPerSecond, ctime(&t->BestOctetsPerSecondTime));
} else
- prompt_Printf(prompt, "Overall %qu bytes/sec\n",
+ prompt_Printf(prompt, "Overall %llu bytes/sec\n",
(t->OctetsIn + t->OctetsOut) / divisor);
}
@@ -126,19 +126,19 @@ throughput_log(struct pppThroughput *t, int level, const char *title)
secs_up = throughput_uptime(t);
if (title)
- log_Printf(level, "%s: Connect time: %d secs: %qu octets in, %qu octets"
+ log_Printf(level, "%s: Connect time: %d secs: %llu octets in, %llu octets"
" out\n", title, secs_up, t->OctetsIn, t->OctetsOut);
else
- log_Printf(level, "Connect time: %d secs: %qu octets in,"
- " %qu octets out\n", secs_up, t->OctetsIn, t->OctetsOut);
+ log_Printf(level, "Connect time: %d secs: %llu octets in,"
+ " %llu octets out\n", secs_up, t->OctetsIn, t->OctetsOut);
if (secs_up == 0)
secs_up = 1;
if (t->rolling)
- log_Printf(level, " total %qu bytes/sec, peak %qu bytes/sec on %s",
+ log_Printf(level, " total %llu bytes/sec, peak %llu bytes/sec on %s",
(t->OctetsIn + t->OctetsOut) / secs_up, t->BestOctetsPerSecond,
ctime(&t->BestOctetsPerSecondTime));
else
- log_Printf(level, " total %qu bytes/sec\n",
+ log_Printf(level, " total %llu bytes/sec\n",
(t->OctetsIn + t->OctetsOut) / secs_up);
}
}