diff options
| author | jdolecek <jdolecek@NetBSD.org> | 2000-02-04 10:43:34 +0000 |
|---|---|---|
| committer | jdolecek <jdolecek@NetBSD.org> | 2000-02-04 10:43:34 +0000 |
| commit | 0238a51cd06b331c5f8f4f2fec7a607152225dfd (patch) | |
| tree | f514a01100c0fb9863fca5552fd706579c202b06 /usr.bin/fstat | |
| parent | 9200b8eabfcd81216413c1cf4db8991ac006c281 (diff) | |
use dprintf() instead of printf(), as other filesystem modules do
Diffstat (limited to 'usr.bin/fstat')
| -rw-r--r-- | usr.bin/fstat/ntfs.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/fstat/ntfs.c b/usr.bin/fstat/ntfs.c index d1e4afbfe1b..b3b32189ad8 100644 --- a/usr.bin/fstat/ntfs.c +++ b/usr.bin/fstat/ntfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: ntfs.c,v 1.5 2000/02/04 10:35:46 jdolecek Exp $ */ +/* $NetBSD: ntfs.c,v 1.6 2000/02/04 10:43:34 jdolecek Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: ntfs.c,v 1.5 2000/02/04 10:35:46 jdolecek Exp $"); +__RCSID("$NetBSD: ntfs.c,v 1.6 2000/02/04 10:43:34 jdolecek Exp $"); #include <sys/param.h> #include <sys/time.h> @@ -53,6 +53,7 @@ __RCSID("$NetBSD: ntfs.c,v 1.5 2000/02/04 10:35:46 jdolecek Exp $"); #undef dprintf #include <ntfs/ntfs_inode.h> +#include <err.h> #include <kvm.h> #include "fstat.h" @@ -69,15 +70,15 @@ ntfs_filestat(vp, fsp) * to read appropriate struct fnode and then getting the address * of ntnode and reading it's contents */ if (!KVM_READ(VTOF(vp), &fn, sizeof (fn))) { - printf("can't read fnode at %p for pid %d", VTOF(vp), Pid); + dprintf("can't read fnode at %p for pid %d", VTOF(vp), Pid); return 0; } if (!KVM_READ(FTONT(&fn), &ntnode, sizeof (ntnode))) { - printf("can't read ntnode at %p for pid %d", FTONT(&fn), Pid); + dprintf("can't read ntnode at %p for pid %d", FTONT(&fn), Pid); return 0; } if (!KVM_READ(ntnode.i_mp, &ntm, sizeof (ntm))) { - printf("can't read ntfsmount at %p for pid %d", + dprintf("can't read ntfsmount at %p for pid %d", FTONT(&fn), Pid); return 0; } |
