Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/ntfs change some printf()s on easily-triggerable code...



details:   https://anonhg.NetBSD.org/src/rev/ff3541a6599a
branches:  trunk
changeset: 545558:ff3541a6599a
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu Apr 10 21:37:32 2003 +0000

description:
change some printf()s on easily-triggerable codepaths to dprintf()

diffstat:

 sys/fs/ntfs/ntfs_subr.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r 194c4b1c1463 -r ff3541a6599a sys/fs/ntfs/ntfs_subr.c
--- a/sys/fs/ntfs/ntfs_subr.c   Thu Apr 10 21:35:20 2003 +0000
+++ b/sys/fs/ntfs/ntfs_subr.c   Thu Apr 10 21:37:32 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntfs_subr.c,v 1.3 2003/02/01 06:23:41 thorpej Exp $    */
+/*     $NetBSD: ntfs_subr.c,v 1.4 2003/04/10 21:37:32 jdolecek Exp $   */
 
 /*-
  * Copyright (c) 1998, 1999 Semen Ustimenko (semenu%FreeBSD.org@localhost)
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_subr.c,v 1.3 2003/02/01 06:23:41 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_subr.c,v 1.4 2003/04/10 21:37:32 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1447,12 +1447,12 @@
                                         off - ntfs_cntob(vap->va_vcnstart),
                                         towrite, data, &init, uio);
                if (error) {
-                       printf("ntfs_writeattr_plain: " \
+                       dprintf(("ntfs_writeattr_plain: " \
                               "ntfs_writentvattr_plain failed: o: %d, s: %d\n",
-                              (u_int32_t) off, (u_int32_t) towrite);
-                       printf("ntfs_writeattr_plain: attrib: %d - %d\n",
+                              (u_int32_t) off, (u_int32_t) towrite));
+                       dprintf(("ntfs_writeattr_plain: attrib: %d - %d\n",
                               (u_int32_t) vap->va_vcnstart, 
-                              (u_int32_t) vap->va_vcnend);
+                              (u_int32_t) vap->va_vcnend));
                        ntfs_ntvattrrele(vap);
                        break;
                }
@@ -1493,7 +1493,7 @@
        *initp = 0;
 
        if ((vap->va_flag & NTFS_AF_INRUN) == 0) {
-               printf("ntfs_writevattr_plain: CAN'T WRITE RES. ATTRIBUTE\n");
+               dprintf(("ntfs_writevattr_plain: CAN'T WRITE RES. ATTRIBUTE\n"));
                return ENOTTY;
        }
 



Home | Main Index | Thread Index | Old Index