Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/fstat use dprintf() instead of printf(), as other fi...
details: https://anonhg.NetBSD.org/src/rev/7585780d38ed
branches: trunk
changeset: 481727:7585780d38ed
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Feb 04 10:43:34 2000 +0000
description:
use dprintf() instead of printf(), as other filesystem modules do
diffstat:
usr.bin/fstat/ntfs.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 2f81ef970674 -r 7585780d38ed usr.bin/fstat/ntfs.c
--- a/usr.bin/fstat/ntfs.c Fri Feb 04 10:35:46 2000 +0000
+++ b/usr.bin/fstat/ntfs.c Fri Feb 04 10:43:34 2000 +0000
@@ -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 @@
#undef dprintf
#include <ntfs/ntfs_inode.h>
+#include <err.h>
#include <kvm.h>
#include "fstat.h"
@@ -69,15 +70,15 @@
* 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;
}
Home |
Main Index |
Thread Index |
Old Index