diff options
author | Roland McGrath <roland@gnu.org> | 2002-06-11 21:41:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-06-11 21:41:03 +0000 |
commit | 7a278aeb3ad6efa16ded2f0a0c19a9392fe131f5 (patch) | |
tree | 8f50f9d6f501f94c0ca73c46b0640bce1d522085 /ufs | |
parent | e67c34f0cbacb31f56ad46510857acfe20c4db90 (diff) |
2002-06-08 Roland McGrath <roland@frob.com>
* alloc.c, dir.c: Use %Ld format for ino_t values.
* alloc.c (diskfs_alloc_node): Use %Ld format for blkcnt_t values.
Diffstat (limited to 'ufs')
-rw-r--r-- | ufs/alloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ufs/alloc.c b/ufs/alloc.c index e76b7703..48ee60cc 100644 --- a/ufs/alloc.c +++ b/ufs/alloc.c @@ -1,5 +1,5 @@ /* Disk allocation routines - Copyright (C) 1993, 94, 95, 96, 98 Free Software Foundation, Inc. + Copyright (C) 1993,94,95,96,98,2002 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -685,7 +685,7 @@ diskfs_alloc_node (struct node *dir, assert ("duplicate allocation" && !np->dn_stat.st_mode); assert (! (np->dn_stat.st_mode & S_IPTRANS)); if (np->dn_stat.st_blocks) { - printf("free inode %d had %ld blocks\n", + printf("free inode %Ld had %Ld blocks\n", ino, np->dn_stat.st_blocks); np->dn_stat.st_blocks = 0; np->dn_set_ctime = 1; @@ -1395,7 +1395,7 @@ ffs_blkfree(register struct node *np, assert ((u_int)size <= fs->fs_bsize && !fragoff (fs, size)); cg = dtog(fs, bno); if ((u_int)bno >= fs->fs_size) { - printf("bad block %ld, ino %d\n", bno, np->dn->number); + printf("bad block %ld, ino %Ld\n", bno, np->dn->number); /* ffs_fserr(fs, ip->i_uid, "bad block"); */ return; } @@ -1518,7 +1518,7 @@ diskfs_free_node (struct node *np, mode_t mode) cgp->cg_time = diskfs_mtime->seconds; ino %= fs->fs_ipg; if (isclr(cg_inosused(cgp), ino)) { -/* printf("dev = 0x%x, ino = %d, fs = %s\n", +/* printf("dev = 0x%x, ino = %Ld, fs = %s\n", pip->i_dev, ino, fs->fs_fsmnt); */ assert (diskfs_readonly); } |