aboutsummaryrefslogtreecommitdiff
path: root/sbin/quotacheck/quotacheck.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-06-28 20:11:23 +0000
committerBruce Evans <bde@FreeBSD.org>1998-06-28 20:11:23 +0000
commitca46ad5f48c3731961ce970ea4f069656fb9a33d (patch)
treefdfb156db3ff2cea2877a7e5c1ca64926bf24725 /sbin/quotacheck/quotacheck.c
parentce79296f8722f76e452ed4a4f41b846ec81f413d (diff)
downloadsrc-ca46ad5f48c3731961ce970ea4f069656fb9a33d.tar.gz
src-ca46ad5f48c3731961ce970ea4f069656fb9a33d.zip
Fixed printf format errors.
Notes
Notes: svn path=/head/; revision=37239
Diffstat (limited to 'sbin/quotacheck/quotacheck.c')
-rw-r--r--sbin/quotacheck/quotacheck.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index 1bee83dbe6be..d9ae421ab87d 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: quotacheck.c,v 1.7 1997/06/16 06:38:14 charnier Exp $
+ * $Id: quotacheck.c,v 1.8 1997/06/30 11:08:29 charnier Exp $
*/
#ifndef lint
@@ -361,11 +361,13 @@ update(fsname, quotafile, type)
printf("%s: ", fsname);
printf("%-8s fixed:", fup->fu_name);
if (dqbuf.dqb_curinodes != fup->fu_curinodes)
- (void)printf("\tinodes %ld -> %ld",
- dqbuf.dqb_curinodes, fup->fu_curinodes);
+ (void)printf("\tinodes %lu -> %lu",
+ (u_long)dqbuf.dqb_curinodes,
+ (u_long)fup->fu_curinodes);
if (dqbuf.dqb_curblocks != fup->fu_curblocks)
- (void)printf("\tblocks %ld -> %ld",
- dqbuf.dqb_curblocks, fup->fu_curblocks);
+ (void)printf("\tblocks %lu -> %lu",
+ (u_long)dqbuf.dqb_curblocks,
+ (u_long)fup->fu_curblocks);
(void)printf("\n");
}
/*
@@ -613,5 +615,5 @@ bread(bno, buf, cnt)
if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0 ||
read(fi, buf, cnt) != cnt)
- errx(1, "block %ld", bno);
+ errx(1, "block %ld", (long)bno);
}