Date: Wed, 15 Mar 2017 17:26:19 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315317 - head/usr.sbin/makefs/ffs Message-ID: <201703151726.v2FHQJs0058962@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Wed Mar 15 17:26:19 2017 New Revision: 315317 URL: https://svnweb.freebsd.org/changeset/base/315317 Log: makefs: don't print pointers in debugging messages NetBSD revisions: ffs/buf.c 1.14 Obtained from: NetBSD Modified: head/usr.sbin/makefs/ffs/buf.c Modified: head/usr.sbin/makefs/ffs/buf.c ============================================================================== --- head/usr.sbin/makefs/ffs/buf.c Wed Mar 15 17:16:43 2017 (r315316) +++ head/usr.sbin/makefs/ffs/buf.c Wed Mar 15 17:26:19 2017 (r315317) @@ -71,13 +71,12 @@ bread(struct vnode *vp, daddr_t blkno, i assert (bpp != NULL); if (debug & DEBUG_BUF_BREAD) - printf("bread: fs %p blkno %lld size %d\n", - fs, (long long)blkno, size); + printf("bread: blkno %lld size %d\n", (long long)blkno, size); *bpp = getblk(vp, blkno, size, 0, 0, 0); offset = (*bpp)->b_blkno * sectorsize; /* XXX */ if (debug & DEBUG_BUF_BREAD) - printf("bread: bp %p blkno %lld offset %lld bcount %ld\n", - (*bpp), (long long)(*bpp)->b_blkno, (long long) offset, + printf("bread: blkno %lld offset %lld bcount %ld\n", + (long long)(*bpp)->b_blkno, (long long) offset, (*bpp)->b_bcount); if (lseek((*bpp)->b_fd, offset, SEEK_SET) == -1) err(1, "bread: lseek %lld (%lld)", @@ -135,8 +134,8 @@ bwrite(struct buf *bp) assert (bp != NULL); offset = bp->b_blkno * sectorsize; /* XXX */ if (debug & DEBUG_BUF_BWRITE) - printf("bwrite: bp %p blkno %lld offset %lld bcount %ld\n", - bp, (long long)bp->b_blkno, (long long) offset, + printf("bwrite: blkno %lld offset %lld bcount %ld\n", + (long long)bp->b_blkno, (long long) offset, bp->b_bcount); if (lseek(bp->b_fd, offset, SEEK_SET) == -1) return (errno); @@ -188,8 +187,7 @@ getblk(struct vnode *vp, daddr_t blkno, blkno += vp->offset; assert (fs != NULL); if (debug & DEBUG_BUF_GETBLK) - printf("getblk: fs %p blkno %lld size %d\n", fs, - (long long)blkno, size); + printf("getblk: blkno %lld size %d\n", (long long)blkno, size); bp = NULL; if (!buftailinitted) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703151726.v2FHQJs0058962>