Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/fstat remove accidentaly left debug printf



details:   https://anonhg.NetBSD.org/src/rev/ccca36b653af
branches:  trunk
changeset: 515565:ccca36b653af
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Sep 28 20:29:04 2001 +0000

description:
remove accidentaly left debug printf

change the pipe descriptor output to include 'r' or 'w' to explicitly
indicate it's open for reading or writing, similarily to "regular" descriptors

diffstat:

 usr.bin/fstat/fstat.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r d7fd6cf3d4c2 -r ccca36b653af usr.bin/fstat/fstat.c
--- a/usr.bin/fstat/fstat.c     Fri Sep 28 20:16:43 2001 +0000
+++ b/usr.bin/fstat/fstat.c     Fri Sep 28 20:29:04 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fstat.c,v 1.51 2001/09/28 20:16:43 jdolecek Exp $      */
+/*     $NetBSD: fstat.c,v 1.52 2001/09/28 20:29:04 jdolecek Exp $      */
 
 /*-
  * Copyright (c) 1988, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)fstat.c    8.3 (Berkeley) 5/2/95";
 #else
-__RCSID("$NetBSD: fstat.c,v 1.51 2001/09/28 20:16:43 jdolecek Exp $");
+__RCSID("$NetBSD: fstat.c,v 1.52 2001/09/28 20:29:04 jdolecek Exp $");
 #endif
 #endif /* not lint */
 
@@ -937,9 +937,11 @@
                goto bad;
        }
 
-       printf("* pipe %d %p %s %p", fp->f_flag, cpipe,
+       /* pipe descriptor is either read or write, never both */
+       printf("* pipe %p %s %p %c", cpipe,
                (fp->f_flag & FWRITE) ? "->" : "<-",
-               cp.pipe_peer);
+               cp.pipe_peer,
+               (fp->f_flag & FWRITE) ? 'w' : 'r');
        printf("\n");
        return;
 bad:



Home | Main Index | Thread Index | Old Index