From c2aa46e7c277e040ee9dd4f36ac7434a63d2c8e4 Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 5 Jan 2001 03:27:26 +0000 Subject: [PATCH] use %ll_ instead of the less standard %q_ --- usr.sbin/dumpfs/dumpfs.c | 8 +-- usr.sbin/dumplfs/dumplfs.c | 12 ++--- usr.sbin/eshconfig/eshconfig.c | 8 +-- usr.sbin/lpr/common_source/displayq.c | 6 +-- usr.sbin/lpr/lpd/printjob.c | 6 +-- usr.sbin/mdsetimage/mdsetimage.c | 6 +-- usr.sbin/mtree/compare.c | 6 +-- usr.sbin/pim6sd/debug.c | 78 +++++++++++++-------------- usr.sbin/pkg_install/lib/file.c | 6 +-- usr.sbin/pkg_install/lib/pen.c | 8 +-- usr.sbin/pstat/pstat.c | 12 ++--- usr.sbin/sa/main.c | 6 +-- usr.sbin/sa/pdb.c | 12 ++--- usr.sbin/sa/usrdb.c | 14 ++--- 14 files changed, 95 insertions(+), 93 deletions(-) diff --git a/usr.sbin/dumpfs/dumpfs.c b/usr.sbin/dumpfs/dumpfs.c index c7973ddd9f5c..56612c06f6d9 100644 --- a/usr.sbin/dumpfs/dumpfs.c +++ b/usr.sbin/dumpfs/dumpfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: dumpfs.c,v 1.21 2000/01/18 20:24:19 pk Exp $ */ +/* $NetBSD: dumpfs.c,v 1.22 2001/01/05 03:27:26 lukem Exp $ */ /* * Copyright (c) 1983, 1992, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1992, 1993\n\ #if 0 static char sccsid[] = "@(#)dumpfs.c 8.5 (Berkeley) 4/29/95"; #else -__RCSID("$NetBSD: dumpfs.c,v 1.21 2000/01/18 20:24:19 pk Exp $"); +__RCSID("$NetBSD: dumpfs.c,v 1.22 2001/01/05 03:27:26 lukem Exp $"); #endif #endif /* not lint */ @@ -190,7 +190,7 @@ dumpfs(name) printf("symlinklen %d\ttrackskew %d\tinterleave %d\tcontigsumsize %d\n", afs.fs_maxsymlinklen, afs.fs_trackskew, afs.fs_interleave, afs.fs_contigsumsize); - printf("maxfilesize 0x%016qx\n", + printf("maxfilesize 0x%016llx\n", (unsigned long long)afs.fs_maxfilesize); printf("nindir\t%d\tinopb\t%d\tnspf\t%d\n", afs.fs_nindir, afs.fs_inopb, afs.fs_nspf); @@ -282,7 +282,7 @@ dumpcg(name, fd, c) } if (needswap) swap_cg(&acg); - printf("magic\t%x\ttell\t%qx\ttime\t%s", + printf("magic\t%x\ttell\t%llx\ttime\t%s", afs.fs_postblformat == FS_42POSTBLFMT ? ((struct ocg *)&acg)->cg_magic : acg.cg_magic, (long long)cur, ctime(&acg.cg_time)); diff --git a/usr.sbin/dumplfs/dumplfs.c b/usr.sbin/dumplfs/dumplfs.c index 329f7d8d5ae4..74673dbfd902 100644 --- a/usr.sbin/dumplfs/dumplfs.c +++ b/usr.sbin/dumplfs/dumplfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: dumplfs.c,v 1.17 2000/11/13 00:30:48 perseant Exp $ */ +/* $NetBSD: dumplfs.c,v 1.18 2001/01/05 03:27:26 lukem Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -45,7 +45,7 @@ __COPYRIGHT( #if 0 static char sccsid[] = "@(#)dumplfs.c 8.5 (Berkeley) 5/24/95"; #else -__RCSID("$NetBSD: dumplfs.c,v 1.17 2000/11/13 00:30:48 perseant Exp $"); +__RCSID("$NetBSD: dumplfs.c,v 1.18 2001/01/05 03:27:26 lukem Exp $"); #endif #endif /* not lint */ @@ -405,7 +405,7 @@ dump_dinode(dip) mt = dip->di_mtime; ct = dip->di_ctime; - (void)printf("%s%d\t%s%d\t%s%d\t%s%d\t%s%qu\n", + (void)printf("%s%d\t%s%d\t%s%d\t%s%d\t%s%llu\n", "mode ", dip->di_mode, "nlink ", dip->di_nlink, "uid ", dip->di_uid, @@ -598,19 +598,19 @@ dump_super(lfsp) "cleansz ", lfsp->lfs_cleansz, "segtabsz ", lfsp->lfs_segtabsz); - (void)printf("%s0x%x\t%s%d\t%s0x%qX\t%s%d\n", + (void)printf("%s0x%x\t%s%d\t%s0x%llX\t%s%d\n", "segmask ", lfsp->lfs_segmask, "segshift ", lfsp->lfs_segshift, "bmask ", (long long)lfsp->lfs_bmask, "bshift ", lfsp->lfs_bshift); - (void)printf("%s0x%qX\t\t%s%d\t%s0x%qX\t%s%u\n", + (void)printf("%s0x%llX\t\t%s%d\t%s0x%llX\t%s%u\n", "ffmask ", (long long)lfsp->lfs_ffmask, "ffshift ", lfsp->lfs_ffshift, "fbmask ", (long long)lfsp->lfs_fbmask, "fbshift ", lfsp->lfs_fbshift); - (void)printf("%s%d\t%s%d\t%s0x%x\t%s0x%qx\n", + (void)printf("%s%d\t%s%d\t%s0x%x\t%s0x%llx\n", "sushift ", lfsp->lfs_sushift, "fsbtodb ", lfsp->lfs_fsbtodb, "cksum ", lfsp->lfs_cksum, diff --git a/usr.sbin/eshconfig/eshconfig.c b/usr.sbin/eshconfig/eshconfig.c index af2d0adeb56a..313158e8c564 100644 --- a/usr.sbin/eshconfig/eshconfig.c +++ b/usr.sbin/eshconfig/eshconfig.c @@ -1,4 +1,4 @@ -/* $NetBSD: eshconfig.c,v 1.3 2000/04/14 06:26:53 simonb Exp $ */ +/* $NetBSD: eshconfig.c,v 1.4 2001/01/05 03:27:26 lukem Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -39,7 +39,7 @@ #include #ifndef lint -__RCSID("$NetBSD: eshconfig.c,v 1.3 2000/04/14 06:26:53 simonb Exp $"); +__RCSID("$NetBSD: eshconfig.c,v 1.4 2001/01/05 03:27:26 lukem Exp $"); #endif /* not lint */ #include @@ -720,10 +720,10 @@ esh_stats(int get_stats) value = (((long long) stats[0x78 / 4]) << 32) | stats[0x7c / 4]; if (get_stats == 1 || value > 0) - printf("%12qd bytes sent\n", value); + printf("%12lld bytes sent\n", value); value = ((long long) stats[0xb8 / 4] << 32) | stats[0xbc / 4]; if (get_stats == 1 || value > 0) - printf("%12qd bytes received\n", value); + printf("%12lld bytes received\n", value); for (offset = 0; stats_values[offset].offset != 0; offset++) { if (get_stats == 1 || stats[stats_values[offset].offset / 4] > 0) diff --git a/usr.sbin/lpr/common_source/displayq.c b/usr.sbin/lpr/common_source/displayq.c index 477fca355978..6768c0180062 100644 --- a/usr.sbin/lpr/common_source/displayq.c +++ b/usr.sbin/lpr/common_source/displayq.c @@ -1,4 +1,4 @@ -/* $NetBSD: displayq.c,v 1.18 2000/10/11 20:23:52 is Exp $ */ +/* $NetBSD: displayq.c,v 1.19 2001/01/05 03:27:27 lukem Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)displayq.c 8.4 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: displayq.c,v 1.18 2000/10/11 20:23:52 is Exp $"); +__RCSID("$NetBSD: displayq.c,v 1.19 2001/01/05 03:27:27 lukem Exp $"); #endif #endif /* not lint */ @@ -480,7 +480,7 @@ ldump(nfile, file, copies) else printf("%-32s", nfile); if (*file && !stat(file, &lbuf)) - printf(" %qd bytes", (long long)lbuf.st_size); + printf(" %lld bytes", (long long)lbuf.st_size); else printf(" ??? bytes"); putchar('\n'); diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index d04a6be74de5..26be423fd07c 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -1,4 +1,4 @@ -/* $NetBSD: printjob.c,v 1.25 2000/10/11 20:23:52 is Exp $ */ +/* $NetBSD: printjob.c,v 1.26 2001/01/05 03:27:27 lukem Exp $ */ /* * Copyright (c) 1983, 1993 @@ -45,7 +45,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\ #if 0 static char sccsid[] = "@(#)printjob.c 8.7 (Berkeley) 5/10/95"; #else -__RCSID("$NetBSD: printjob.c,v 1.25 2000/10/11 20:23:52 is Exp $"); +__RCSID("$NetBSD: printjob.c,v 1.26 2001/01/05 03:27:27 lukem Exp $"); #endif #endif /* not lint */ @@ -869,7 +869,7 @@ sendfile(type, file) if (S_ISLNK(stb.st_mode) && fstat(f, &stb) == 0 && (stb.st_dev != fdev || stb.st_ino != fino)) return(ACCESS); - amt = snprintf(buf, sizeof(buf), "%c%qd %s\n", type, + amt = snprintf(buf, sizeof(buf), "%c%lld %s\n", type, (long long)stb.st_size, file); for (i = 0; ; i++) { if (write(pfd, buf, amt) != amt || diff --git a/usr.sbin/mdsetimage/mdsetimage.c b/usr.sbin/mdsetimage/mdsetimage.c index f4a623e210ee..9624cb365929 100644 --- a/usr.sbin/mdsetimage/mdsetimage.c +++ b/usr.sbin/mdsetimage/mdsetimage.c @@ -1,4 +1,4 @@ -/* $NetBSD: mdsetimage.c,v 1.10 2000/06/14 17:26:18 cgd Exp $ */ +/* $NetBSD: mdsetimage.c,v 1.11 2001/01/05 03:27:27 lukem Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou @@ -42,7 +42,7 @@ __COPYRIGHT( #endif /* not lint */ #ifndef lint -__RCSID("$NetBSD: mdsetimage.c,v 1.10 2000/06/14 17:26:18 cgd Exp $"); +__RCSID("$NetBSD: mdsetimage.c,v 1.11 2001/01/05 03:27:27 lukem Exp $"); #endif /* not lint */ #include @@ -149,7 +149,7 @@ main(argc, argv) if (fssb.st_size > SIZE_T_MAX) errx(1, "fs image is too big"); if (fssb.st_size > md_root_size) - errx(1, "fs image (%qd bytes) too big for buffer (%ld bytes)", + errx(1, "fs image (%lld bytes) too big for buffer (%lu bytes)", (long long)fssb.st_size, (unsigned long)md_root_size); if (verbose) diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c index bf97e7d3f6c8..2f1b2f9bc553 100644 --- a/usr.sbin/mtree/compare.c +++ b/usr.sbin/mtree/compare.c @@ -1,4 +1,4 @@ -/* $NetBSD: compare.c,v 1.22 1999/07/10 19:59:28 christos Exp $ */ +/* $NetBSD: compare.c,v 1.23 2001/01/05 03:27:27 lukem Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93"; #else -__RCSID("$NetBSD: compare.c,v 1.22 1999/07/10 19:59:28 christos Exp $"); +__RCSID("$NetBSD: compare.c,v 1.23 2001/01/05 03:27:27 lukem Exp $"); #endif #endif /* not lint */ @@ -227,7 +227,7 @@ typeerr: LABEL; } if (s->flags & F_SIZE && s->st_size != p->fts_statp->st_size) { LABEL; - (void)printf("%ssize (%qd, %qd)\n", + (void)printf("%ssize (%lld, %lld)\n", tab, (long long)s->st_size, (long long)p->fts_statp->st_size); tab = "\t"; diff --git a/usr.sbin/pim6sd/debug.c b/usr.sbin/pim6sd/debug.c index bea4d8682179..c42789a1b3f0 100644 --- a/usr.sbin/pim6sd/debug.c +++ b/usr.sbin/pim6sd/debug.c @@ -1,4 +1,4 @@ -/* $NetBSD: debug.c,v 1.7 2000/12/04 07:09:35 itojun Exp $ */ +/* $NetBSD: debug.c,v 1.8 2001/01/05 03:27:27 lukem Exp $ */ /* $KAME: debug.c,v 1.44 2000/12/04 06:45:29 itojun Exp $ */ /* @@ -348,94 +348,94 @@ dump_stat() continue; #endif fprintf(fp, " Mif=%d, PhyIF=%s\n", vifi, v->uv_name); - fprintf(fp, "\t%qu pim6 hello received\n", + fprintf(fp, "\t%llu pim6 hello received\n", (unsigned long long)v->uv_in_pim6_hello); - fprintf(fp, "\t%qu pim6 join-prune received\n", + fprintf(fp, "\t%llu pim6 join-prune received\n", (unsigned long long)v->uv_in_pim6_join_prune); - fprintf(fp, "\t%qu pim6 bootstrap received\n", + fprintf(fp, "\t%llu pim6 bootstrap received\n", (unsigned long long)v->uv_in_pim6_bootsrap); - fprintf(fp, "\t%qu pim6 assert received\n", + fprintf(fp, "\t%llu pim6 assert received\n", (unsigned long long)v->uv_in_pim6_assert); - fprintf(fp, "\t%qu pim6 hello sent\n", + fprintf(fp, "\t%llu pim6 hello sent\n", (unsigned long long)v->uv_out_pim6_hello); - fprintf(fp, "\t%qu pim6 join-prune sent\n", + fprintf(fp, "\t%llu pim6 join-prune sent\n", (unsigned long long)v->uv_out_pim6_join_prune); - fprintf(fp, "\t%qu pim6 bootstrap sent\n", + fprintf(fp, "\t%llu pim6 bootstrap sent\n", (unsigned long long)v->uv_out_pim6_bootsrap); - fprintf(fp, "\t%qu pim6 assert sent\n", + fprintf(fp, "\t%llu pim6 assert sent\n", (unsigned long long)v->uv_out_pim6_assert); - fprintf(fp, "\t%qu MLD query received\n", + fprintf(fp, "\t%llu MLD query received\n", (unsigned long long)v->uv_in_mld_query); - fprintf(fp, "\t%qu MLD report received\n", + fprintf(fp, "\t%llu MLD report received\n", (unsigned long long)v->uv_in_mld_report); - fprintf(fp, "\t%qu MLD done received\n", + fprintf(fp, "\t%llu MLD done received\n", (unsigned long long)v->uv_in_mld_done); - fprintf(fp, "\t%qu MLD query sent\n", + fprintf(fp, "\t%llu MLD query sent\n", (unsigned long long)v->uv_out_mld_query); - fprintf(fp, "\t%qu MLD report sent\n", + fprintf(fp, "\t%llu MLD report sent\n", (unsigned long long)v->uv_out_mld_report); - fprintf(fp, "\t%qu MLD done sent\n", + fprintf(fp, "\t%llu MLD done sent\n", (unsigned long long)v->uv_out_mld_done); - fprintf(fp, "\t%qu forwarding cache miss\n", + fprintf(fp, "\t%llu forwarding cache miss\n", (unsigned long long)v->uv_cache_miss); - fprintf(fp, "\t%qu forwarding cache miss and not created\n", + fprintf(fp, "\t%llu forwarding cache miss and not created\n", (unsigned long long)v->uv_cache_notcreated); - fprintf(fp, "\t%qu PIM neighbor timeouts\n", + fprintf(fp, "\t%llu PIM neighbor timeouts\n", (unsigned long long)v->uv_pim6_nbr_timo); - fprintf(fp, "\t%qu MLD listener timeouts\n", + fprintf(fp, "\t%llu MLD listener timeouts\n", (unsigned long long)v->uv_listener_timo); - fprintf(fp, "\t%qu MLD querier timeouts\n", + fprintf(fp, "\t%llu MLD querier timeouts\n", (unsigned long long)v->uv_querier_timo); - fprintf(fp, "\t%qu out-I/F timeouts\n", + fprintf(fp, "\t%llu out-I/F timeouts\n", (unsigned long long)v->uv_outif_timo); } fprintf(fp, "\npim6sd interface independent statistics\n"); - fprintf(fp, "\t%qu pim6 register received\n", + fprintf(fp, "\t%llu pim6 register received\n", (unsigned long long)pim6dstat.in_pim6_register); - fprintf(fp, "\t%qu pim6 register-stop received\n", + fprintf(fp, "\t%llu pim6 register-stop received\n", (unsigned long long)pim6dstat.in_pim6_register_stop); - fprintf(fp, "\t%qu pim6 cand-RP received\n", + fprintf(fp, "\t%llu pim6 cand-RP received\n", (unsigned long long)pim6dstat.in_pim6_cand_rp); - fprintf(fp, "\t%qu pim6 graft received\n", + fprintf(fp, "\t%llu pim6 graft received\n", (unsigned long long)pim6dstat.in_pim6_graft); - fprintf(fp, "\t%qu pim6 graft ack received\n", + fprintf(fp, "\t%llu pim6 graft ack received\n", (unsigned long long)pim6dstat.in_pim6_graft_ack); - fprintf(fp, "\t%qu pim6 register sent\n", + fprintf(fp, "\t%llu pim6 register sent\n", (unsigned long long)pim6dstat.out_pim6_register); - fprintf(fp, "\t%qu pim6 register-stop sent\n", + fprintf(fp, "\t%llu pim6 register-stop sent\n", (unsigned long long)pim6dstat.out_pim6_register_stop); - fprintf(fp, "\t%qu pim6 cand-RP sent\n", + fprintf(fp, "\t%llu pim6 cand-RP sent\n", (unsigned long long)pim6dstat.out_pim6_cand_rp); - fprintf(fp, "\t%qu transitions of forwarder initiated SPT\n", + fprintf(fp, "\t%llu transitions of forwarder initiated SPT\n", (unsigned long long)pim6dstat.pim6_trans_spt_forward); - fprintf(fp, "\t%qu transitions of RP initiated SPT\n", + fprintf(fp, "\t%llu transitions of RP initiated SPT\n", (unsigned long long)pim6dstat.pim6_trans_spt_rp); - fprintf(fp, "\t%qu pim6 bootstrap timeouts\n", + fprintf(fp, "\t%llu pim6 bootstrap timeouts\n", (unsigned long long)pim6dstat.pim6_bootstrap_timo); - fprintf(fp, "\t%qu pim6 RP group entry timeouts\n", + fprintf(fp, "\t%llu pim6 RP group entry timeouts\n", (unsigned long long)pim6dstat.pim6_rpgrp_timo); - fprintf(fp, "\t%qu pim6 routing entry timeouts\n", + fprintf(fp, "\t%llu pim6 routing entry timeouts\n", (unsigned long long)pim6dstat.pim6_rtentry_timo); - fprintf(fp, "\t%qu kernel cache additions\n", + fprintf(fp, "\t%llu kernel cache additions\n", (unsigned long long)pim6dstat.kern_add_cache); - fprintf(fp, "\t%qu kernel cache addition failures\n", + fprintf(fp, "\t%llu kernel cache addition failures\n", (unsigned long long)pim6dstat.kern_add_cache_fail); - fprintf(fp, "\t%qu kernel cache deletions\n", + fprintf(fp, "\t%llu kernel cache deletions\n", (unsigned long long)pim6dstat.kern_del_cache); - fprintf(fp, "\t%qu kernel cache deletion failures\n", + fprintf(fp, "\t%llu kernel cache deletion failures\n", (unsigned long long)pim6dstat.kern_del_cache_fail); - fprintf(fp, "\t%qu failures of getting kernel cache\n", + fprintf(fp, "\t%llu failures of getting kernel cache\n", (unsigned long long)pim6dstat.kern_sgcnt_fail); fclose(fp); diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 29d37f6eb627..07af26a4f082 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -1,11 +1,11 @@ -/* $NetBSD: file.c,v 1.45 2000/12/13 03:49:56 hubertf Exp $ */ +/* $NetBSD: file.c,v 1.46 2001/01/05 03:27:27 lukem Exp $ */ #include #ifndef lint #if 0 static const char *rcsid = "from FreeBSD Id: file.c,v 1.29 1997/10/08 07:47:54 charnier Exp"; #else -__RCSID("$NetBSD: file.c,v 1.45 2000/12/13 03:49:56 hubertf Exp $"); +__RCSID("$NetBSD: file.c,v 1.46 2001/01/05 03:27:27 lukem Exp $"); #endif #endif @@ -545,7 +545,7 @@ fileGetContents(char *fname) } if (read(fd, contents, (size_t) sb.st_size) != (size_t) sb.st_size) { cleanup(0); - errx(2, "short read on '%s' - did not get %qd bytes", + errx(2, "short read on '%s' - did not get %lld bytes", fname, (long long) sb.st_size); } close(fd); diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c index 9c39752c67ac..0f8250dc0a3b 100644 --- a/usr.sbin/pkg_install/lib/pen.c +++ b/usr.sbin/pkg_install/lib/pen.c @@ -1,11 +1,11 @@ -/* $NetBSD: pen.c,v 1.18 2000/11/26 03:12:01 hubertf Exp $ */ +/* $NetBSD: pen.c,v 1.19 2001/01/05 03:27:28 lukem Exp $ */ #include #ifndef lint #if 0 static const char *rcsid = "from FreeBSD Id: pen.c,v 1.25 1997/10/08 07:48:12 charnier Exp"; #else -__RCSID("$NetBSD: pen.c,v 1.18 2000/11/26 03:12:01 hubertf Exp $"); +__RCSID("$NetBSD: pen.c,v 1.19 2001/01/05 03:27:28 lukem Exp $"); #endif #endif @@ -139,7 +139,9 @@ make_playpen(char *pen, size_t pensize, size_t sz) #endif if (Verbose) { if (sz) - fprintf(stderr, "Requested space: %lu bytes, free space: %qd bytes in %s\n", (u_long) sz, (long long) min_free(pen), pen); + fprintf(stderr, + "Requested space: %lu bytes, free space: %lld bytes in %s\n", + (u_long) sz, (long long) min_free(pen), pen); } if (min_free(pen) < sz) { rmdir(pen); diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index fd0fefbd3602..d7dfaaa12dca 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -1,4 +1,4 @@ -/* $NetBSD: pstat.c,v 1.56 2000/12/13 05:50:33 enami Exp $ */ +/* $NetBSD: pstat.c,v 1.57 2001/01/05 03:27:28 lukem Exp $ */ /*- * Copyright (c) 1980, 1991, 1993, 1994 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1991, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95"; #else -__RCSID("$NetBSD: pstat.c,v 1.56 2000/12/13 05:50:33 enami Exp $"); +__RCSID("$NetBSD: pstat.c,v 1.57 2001/01/05 03:27:28 lukem Exp $"); #endif #endif /* not lint */ @@ -489,7 +489,7 @@ ufs_print(vp) else (void)printf(" %7s", name); else - (void)printf(" %7qd", (long long)ip->i_ffs_size); + (void)printf(" %7lld", (long long)ip->i_ffs_size); return (0); } @@ -579,7 +579,7 @@ nfs_print(vp) (void)printf(" %7s", name); break; default: - (void)printf(" %7qd", (long long)np->n_size); + (void)printf(" %7lld", (long long)np->n_size); break; } return (0); @@ -887,9 +887,9 @@ filemode() (void)printf(" %3d", fp->f_msgcount); (void)printf(" %8.1lx", (long)fp->f_data); if (fp->f_offset < 0) - (void)printf(" %qx\n", (long long)fp->f_offset); + (void)printf(" %llx\n", (long long)fp->f_offset); else - (void)printf(" %qd\n", (long long)fp->f_offset); + (void)printf(" %lld\n", (long long)fp->f_offset); } free(buf); } diff --git a/usr.sbin/sa/main.c b/usr.sbin/sa/main.c index 45890dc46f5e..61e72003f63b 100644 --- a/usr.sbin/sa/main.c +++ b/usr.sbin/sa/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.12 2000/07/29 19:13:34 christos Exp $ */ +/* $NetBSD: main.c,v 1.13 2001/01/05 03:27:28 lukem Exp $ */ /* * Copyright (c) 1994 Christopher G. Demetriou @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994 Christopher G. Demetriou\n\ All rights reserved.\n"); -__RCSID("$NetBSD: main.c,v 1.12 2000/07/29 19:13:34 christos Exp $"); +__RCSID("$NetBSD: main.c,v 1.13 2001/01/05 03:27:28 lukem Exp $"); #endif /* @@ -361,7 +361,7 @@ acct_load(pn, wr) if (sflag || (mflag && !qflag)) usracct_add(&ci); } else if (!qflag) - printf("%6u %12.2f cpu %12quk mem %12qu io %s\n", + printf("%6u %12.2f cpu %12lluk mem %12llu io %s\n", ci.ci_uid, (ci.ci_utime + ci.ci_stime) / (double) AHZ, (unsigned long long)ci.ci_mem, diff --git a/usr.sbin/sa/pdb.c b/usr.sbin/sa/pdb.c index 32578eb525a2..81d9f11c0e56 100644 --- a/usr.sbin/sa/pdb.c +++ b/usr.sbin/sa/pdb.c @@ -1,4 +1,4 @@ -/* $NetBSD: pdb.c,v 1.9 2000/07/29 19:15:40 christos Exp $ */ +/* $NetBSD: pdb.c,v 1.10 2001/01/05 03:27:28 lukem Exp $ */ /* * Copyright (c) 1994 Christopher G. Demetriou @@ -36,7 +36,7 @@ #include #ifndef lint -__RCSID("$NetBSD: pdb.c,v 1.9 2000/07/29 19:15:40 christos Exp $"); +__RCSID("$NetBSD: pdb.c,v 1.10 2001/01/05 03:27:28 lukem Exp $"); #endif #include @@ -327,7 +327,7 @@ check_junk(cip) char *cp; size_t len; - fprintf(stderr, "%s (%qu) -- ", cip->ci_comm, + fprintf(stderr, "%s (%llu) -- ", cip->ci_comm, (unsigned long long)cip->ci_calls); cp = fgetln(stdin, &len); @@ -362,7 +362,7 @@ print_ci(cip, totalcip) } else uflow = 0; - printf("%8qu ", (unsigned long long)cip->ci_calls); + printf("%8llu ", (unsigned long long)cip->ci_calls); if (cflag) { if (cip != totalcip) printf(" %4.2f%% ", @@ -427,12 +427,12 @@ print_ci(cip, totalcip) } if (Dflag) - printf("%10qutio ", (unsigned long long)cip->ci_io); + printf("%10llutio ", (unsigned long long)cip->ci_io); else printf("%8.0favio ", cip->ci_io / c); if (Kflag) - printf("%10quk*sec ", (unsigned long long)cip->ci_mem); + printf("%10lluk*sec ", (unsigned long long)cip->ci_mem); else printf("%8.0fk ", cip->ci_mem / t); diff --git a/usr.sbin/sa/usrdb.c b/usr.sbin/sa/usrdb.c index a883edc3900a..ecdefa2721a4 100644 --- a/usr.sbin/sa/usrdb.c +++ b/usr.sbin/sa/usrdb.c @@ -1,4 +1,4 @@ -/* $NetBSD: usrdb.c,v 1.9 2000/07/29 19:15:40 christos Exp $ */ +/* $NetBSD: usrdb.c,v 1.10 2001/01/05 03:27:28 lukem Exp $ */ /* * Copyright (c) 1994 Christopher G. Demetriou @@ -36,7 +36,7 @@ #include #ifndef lint -__RCSID("$NetBSD: usrdb.c,v 1.9 2000/07/29 19:15:40 christos Exp $"); +__RCSID("$NetBSD: usrdb.c,v 1.10 2001/01/05 03:27:28 lukem Exp $"); #endif #include @@ -254,7 +254,7 @@ usracct_print() while (rv == 0) { memcpy(ui, data.data, sizeof(struct userinfo)); - printf("%-8s %9qu ", + printf("%-8s %9llu ", user_from_uid(ui->ui_uid, 0), (unsigned long long)ui->ui_calls); @@ -267,19 +267,19 @@ usracct_print() /* ui->ui_calls is always != 0 */ if (dflag) - printf("%12qu%s", + printf("%12llu%s", (unsigned long long)(ui->ui_io / ui->ui_calls), "avio"); else - printf("%12qu%s", + printf("%12llu%s", (unsigned long long)ui->ui_io, "tio"); /* t is always >= 0.0001; see above */ if (kflag) - printf("%12qu%s", (unsigned long long)(ui->ui_mem / t), + printf("%12llu%s", (unsigned long long)(ui->ui_mem / t), "k"); else - printf("%12qu%s", (unsigned long long)ui->ui_mem, + printf("%12llu%s", (unsigned long long)ui->ui_mem, "k*sec"); printf("\n");