diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-11 05:12:41 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-11 05:12:41 +0000 |
commit | b3067fd524234e263e58b215d0fb24d414bf1c34 (patch) | |
tree | 5c1576265dded5700ab387af81051fabd39f3396 /sys/ufs/lfs/lfs_inode.c | |
parent | 9ee95b4b405b050512cf782b508d774f4601a6b5 (diff) |
panic prints a newline for you, don't do it in the panic string
Diffstat (limited to 'sys/ufs/lfs/lfs_inode.c')
-rw-r--r-- | sys/ufs/lfs/lfs_inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/ufs/lfs/lfs_inode.c b/sys/ufs/lfs/lfs_inode.c index c385e622eae..6dd0904c44f 100644 --- a/sys/ufs/lfs/lfs_inode.c +++ b/sys/ufs/lfs/lfs_inode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lfs_inode.c,v 1.6 1997/05/30 08:34:39 downsj Exp $ */ +/* $OpenBSD: lfs_inode.c,v 1.7 1999/01/11 05:12:38 millert Exp $ */ /* $NetBSD: lfs_inode.c,v 1.5 1996/05/11 18:27:35 mycroft Exp $ */ /* @@ -124,7 +124,7 @@ lfs_update(v) if (lastseg != -1) { \ LFS_SEGENTRY(sup, fs, lastseg, sup_bp); \ if (num > sup->su_nbytes) \ - panic("lfs_truncate: negative bytes in segment %d\n", \ + panic("lfs_truncate: negative bytes in segment %d", \ lastseg); \ sup->su_nbytes -= num; \ e1 = VOP_BWRITE(sup_bp); \ @@ -324,7 +324,7 @@ lfs_truncate(v) if (ip->i_ffs_blocks < fragstodb(fs, fragsreleased)) { printf("lfs_truncate: frag count < 0\n"); fragsreleased = dbtofrags(fs, ip->i_ffs_blocks); - panic("lfs_truncate: frag count < 0\n"); + panic("lfs_truncate: frag count < 0"); } #endif ip->i_ffs_blocks -= fragstodb(fs, fragsreleased); @@ -360,7 +360,7 @@ lfs_truncate(v) printf("lfs_inode: Warning! %s\n", "more frags released from inode than are in inode"); fragsreleased = dbtofrags(fs, ip->i_ffs_blocks); - panic("lfs_inode: Warning. More frags released\n"); + panic("lfs_inode: Warning. More frags released"); } #endif fs->lfs_bfree += fragstodb(fs, fragsreleased); |