Fix printf format strings
This commit is contained in:
parent
cb6211e540
commit
48fda0b4ca
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ffs_alloc.c,v 1.9 1996/02/09 22:22:18 christos Exp $ */
|
||||
/* $NetBSD: ffs_alloc.c,v 1.10 1996/03/17 02:16:18 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
@ -1222,7 +1222,7 @@ ffs_blkfree(ip, bno, size)
|
||||
|
||||
fs = ip->i_fs;
|
||||
if ((u_int)size > fs->fs_bsize || fragoff(fs, size) != 0) {
|
||||
printf("dev = 0x%x, bsize = %d, size = %d, fs = %s\n",
|
||||
printf("dev = 0x%x, bsize = %d, size = %ld, fs = %s\n",
|
||||
ip->i_dev, fs->fs_bsize, size, fs->fs_fsmnt);
|
||||
panic("blkfree: bad size");
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ffs_subr.c,v 1.5 1996/02/09 22:22:24 christos Exp $ */
|
||||
/* $NetBSD: ffs_subr.c,v 1.6 1996/03/17 02:16:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
@ -145,7 +145,7 @@ ffs_checkoverlap(bp, ip)
|
||||
ep->b_blkno + btodb(ep->b_bcount) <= start)
|
||||
continue;
|
||||
vprint("Disk overlap", vp);
|
||||
(void)printf("\tstart %d, end %d overlap start %d, end %d\n",
|
||||
(void)printf("\tstart %d, end %d overlap start %d, end %ld\n",
|
||||
start, last, ep->b_blkno,
|
||||
ep->b_blkno + btodb(ep->b_bcount) - 1);
|
||||
panic("Disk buffer overlap");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lfs_debug.c,v 1.3 1996/02/12 22:08:47 christos Exp $ */
|
||||
/* $NetBSD: lfs_debug.c,v 1.4 1996/03/17 02:16:28 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -53,7 +53,7 @@ lfs_dump_super(lfsp)
|
||||
{
|
||||
int i;
|
||||
|
||||
(void)printf("%s%lx\t%s%lx\t%s%d\t%s%d\n",
|
||||
(void)printf("%s%x\t%s%x\t%s%d\t%s%d\n",
|
||||
"magic ", lfsp->lfs_magic,
|
||||
"version ", lfsp->lfs_version,
|
||||
"size ", lfsp->lfs_size,
|
||||
@ -76,19 +76,19 @@ lfs_dump_super(lfsp)
|
||||
"cleansz ", lfsp->lfs_cleansz,
|
||||
"segtabsz ", lfsp->lfs_segtabsz);
|
||||
|
||||
(void)printf("%s%lx\t%s%d\t%s%lx\t%s%d\n",
|
||||
(void)printf("%s%x\t%s%d\t%s%x\t%s%d\n",
|
||||
"segmask ", lfsp->lfs_segmask,
|
||||
"segshift ", lfsp->lfs_segshift,
|
||||
"bmask ", lfsp->lfs_bmask,
|
||||
"bshift ", lfsp->lfs_bshift);
|
||||
|
||||
(void)printf("%s%lx\t%s%d\t%s%lx\t%s%d\n",
|
||||
(void)printf("%s%x\t%s%d\t%s%x\t%s%d\n",
|
||||
"ffmask ", lfsp->lfs_ffmask,
|
||||
"ffshift ", lfsp->lfs_ffshift,
|
||||
"fbmask ", lfsp->lfs_fbmask,
|
||||
"fbshift ", lfsp->lfs_fbshift);
|
||||
|
||||
(void)printf("%s%d\t%s%d\t%s%lx\t%s%qx\n",
|
||||
(void)printf("%s%d\t%s%d\t%s%x\t%s%qx\n",
|
||||
"sushift ", lfsp->lfs_sushift,
|
||||
"fsbtodb ", lfsp->lfs_fsbtodb,
|
||||
"cksum ", lfsp->lfs_cksum,
|
||||
@ -96,22 +96,22 @@ lfs_dump_super(lfsp)
|
||||
|
||||
(void)printf("Superblock disk addresses:");
|
||||
for (i = 0; i < LFS_MAXNUMSB; i++)
|
||||
(void)printf(" %lx", lfsp->lfs_sboffs[i]);
|
||||
(void)printf(" %x", lfsp->lfs_sboffs[i]);
|
||||
(void)printf("\n");
|
||||
|
||||
(void)printf("Checkpoint Info\n");
|
||||
(void)printf("%s%d\t%s%lx\t%s%d\n",
|
||||
(void)printf("%s%d\t%s%x\t%s%d\n",
|
||||
"free ", lfsp->lfs_free,
|
||||
"idaddr ", lfsp->lfs_idaddr,
|
||||
"ifile ", lfsp->lfs_ifile);
|
||||
(void)printf("%s%lx\t%s%d\t%s%lx\t%s%lx\t%s%lx\t%s%lx\n",
|
||||
(void)printf("%s%x\t%s%d\t%s%x\t%s%x\t%s%x\t%s%x\n",
|
||||
"bfree ", lfsp->lfs_bfree,
|
||||
"nfiles ", lfsp->lfs_nfiles,
|
||||
"lastseg ", lfsp->lfs_lastseg,
|
||||
"nextseg ", lfsp->lfs_nextseg,
|
||||
"curseg ", lfsp->lfs_curseg,
|
||||
"offset ", lfsp->lfs_offset);
|
||||
(void)printf("tstamp %lx\n", lfsp->lfs_tstamp);
|
||||
(void)printf("tstamp %x\n", lfsp->lfs_tstamp);
|
||||
}
|
||||
|
||||
void
|
||||
@ -126,15 +126,15 @@ lfs_dump_dinode(dip)
|
||||
"uid ", dip->di_uid,
|
||||
"gid ", dip->di_gid,
|
||||
"size ", dip->di_size);
|
||||
(void)printf("inum %ld\n", dip->di_inumber);
|
||||
(void)printf("inum %d\n", dip->di_inumber);
|
||||
(void)printf("Direct Addresses\n");
|
||||
for (i = 0; i < NDADDR; i++) {
|
||||
(void)printf("\t%lx", dip->di_db[i]);
|
||||
(void)printf("\t%x", dip->di_db[i]);
|
||||
if ((i % 6) == 5)
|
||||
(void)printf("\n");
|
||||
}
|
||||
for (i = 0; i < NIADDR; i++)
|
||||
(void)printf("\t%lx", dip->di_ib[i]);
|
||||
(void)printf("\t%x", dip->di_ib[i]);
|
||||
(void)printf("\n");
|
||||
}
|
||||
#endif /* DEBUG */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mfs_vnops.c,v 1.7 1996/02/21 00:06:45 cgd Exp $ */
|
||||
/* $NetBSD: mfs_vnops.c,v 1.8 1996/03/17 02:16:32 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -297,7 +297,7 @@ mfs_inactive(v)
|
||||
register struct mfsnode *mfsp = VTOMFS(ap->a_vp);
|
||||
|
||||
if (mfsp->mfs_buflist && mfsp->mfs_buflist != (struct buf *)(-1))
|
||||
panic("mfs_inactive: not inactive (mfs_buflist %x)",
|
||||
panic("mfs_inactive: not inactive (mfs_buflist %p)",
|
||||
mfsp->mfs_buflist);
|
||||
return (0);
|
||||
}
|
||||
@ -331,8 +331,8 @@ mfs_print(v)
|
||||
} */ *ap = v;
|
||||
register struct mfsnode *mfsp = VTOMFS(ap->a_vp);
|
||||
|
||||
printf("tag VT_MFS, pid %d, base %p, size %d\n", mfsp->mfs_pid,
|
||||
mfsp->mfs_baseoff, mfsp->mfs_size);
|
||||
printf("tag VT_MFS, pid %d, base %p, size %ld\n", mfsp->mfs_pid,
|
||||
mfsp->mfs_baseoff, mfsp->mfs_size);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user