summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2008-01-05 19:51:56 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2008-01-05 19:51:56 +0000
commit098a03a9e103f14a1577210712b7596679d7e547 (patch)
tree5f7609522ebf54bbc55c55e198c3f61f41a880b4
parent376c8927e39692e2a0f112bdfb062c24860ccc06 (diff)
handle 64-bit blkno's in format string
-rw-r--r--sbin/newfs/mkfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c
index 2c591d7b3f2..31979558c5f 100644
--- a/sbin/newfs/mkfs.c
+++ b/sbin/newfs/mkfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkfs.c,v 1.70 2007/07/07 08:16:52 millert Exp $ */
+/* $OpenBSD: mkfs.c,v 1.71 2008/01/05 19:51:55 otto Exp $ */
/* $NetBSD: mkfs.c,v 1.25 1995/06/18 21:35:38 cgd Exp $ */
/*
@@ -552,7 +552,7 @@ mkfs(struct partition *pp, char *fsys, int fi, int fo, mode_t mfsmode,
initcg(cylno, utime);
if (quiet)
continue;
- j = snprintf(tmpbuf, sizeof tmpbuf, " %ld,",
+ j = snprintf(tmpbuf, sizeof tmpbuf, " %lld,",
fsbtodb(&sblock, cgsblock(&sblock, cylno)));
if (j >= sizeof tmpbuf)
j = sizeof tmpbuf - 1;