summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-09-19 03:55:30 +0000
committerobrien <obrien@FreeBSD.org>2002-09-19 03:55:30 +0000
commita8deaee84b0c7767d93f39a20e2c708dcd69f1aa (patch)
tree733ba7cb90aa22184ca16dcbf34f8c4e1ba05a00 /sys/ufs
parenta58c104a74fea8fc4e817cdac848bd7bf2ad9cd8 (diff)
downloadFreeBSD-src-a8deaee84b0c7767d93f39a20e2c708dcd69f1aa.zip
FreeBSD-src-a8deaee84b0c7767d93f39a20e2c708dcd69f1aa.tar.gz
intmax_t is printed with %jd, not %lld.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_alloc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index 28b09cc..2b58167 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -499,7 +499,7 @@ ffs_reallocblks_ufs1(ap)
*/
#ifdef DEBUG
if (prtrealloc)
- printf("realloc: ino %d, lbns %lld-%lld\n\told:", ip->i_number,
+ printf("realloc: ino %d, lbns %jd-%jd\n\told:", ip->i_number,
(intmax_t)start_lbn, (intmax_t)end_lbn);
#endif
blkno = newblk;
@@ -701,7 +701,7 @@ ffs_reallocblks_ufs2(ap)
*/
#ifdef DEBUG
if (prtrealloc)
- printf("realloc: ino %d, lbns %lld-%lld\n\told:", ip->i_number,
+ printf("realloc: ino %d, lbns %jd-%jd\n\told:", ip->i_number,
(intmax_t)start_lbn, (intmax_t)end_lbn);
#endif
blkno = newblk;
@@ -719,7 +719,7 @@ ffs_reallocblks_ufs2(ap)
#endif
#ifdef DEBUG
if (prtrealloc)
- printf(" %lld,", (intmax_t)*bap);
+ printf(" %jd,", (intmax_t)*bap);
#endif
if (DOINGSOFTDEP(vp)) {
if (sbap == &ip->i_din2->di_db[0] && i < ssize)
@@ -1710,7 +1710,7 @@ ffs_blkfree(fs, devvp, bno, size, inum)
panic("ffs_blkfree: deallocation on suspended filesystem");
if ((u_int)size > fs->fs_bsize || fragoff(fs, size) != 0 ||
fragnum(fs, bno) + numfrags(fs, size) > fs->fs_frag) {
- printf("dev=%s, bno = %lld, bsize = %ld, size = %ld, fs = %s\n",
+ printf("dev=%s, bno = %jd, bsize = %ld, size = %ld, fs = %s\n",
devtoname(dev), (intmax_t)bno, (long)fs->fs_bsize,
size, fs->fs_fsmnt);
panic("ffs_blkfree: bad size");
@@ -1825,7 +1825,7 @@ ffs_checkblk(ip, bno, size)
panic("ffs_checkblk: bad size");
}
if ((u_int)bno >= fs->fs_size)
- panic("ffs_checkblk: bad block %lld", (intmax_t)bno);
+ panic("ffs_checkblk: bad block %jd", (intmax_t)bno);
error = bread(ip->i_devvp, fsbtodb(fs, cgtod(fs, dtog(fs, bno))),
(int)fs->fs_cgsize, NOCRED, &bp);
if (error)
@@ -2281,11 +2281,11 @@ sysctl_ffs_fsck(SYSCTL_HANDLER_ARGS)
#ifdef DEBUG
if (fsckcmds) {
if (cmd.size == 1)
- printf("%s: free block %lld\n",
+ printf("%s: free block %jd\n",
mp->mnt_stat.f_mntonname,
(intmax_t)cmd.value);
else
- printf("%s: free blocks %lld-%lld\n",
+ printf("%s: free blocks %jd-%jd\n",
mp->mnt_stat.f_mntonname,
(intmax_t)cmd.value,
(intmax_t)cmd.value + cmd.size - 1);
OpenPOWER on IntegriCloud