missing \n in fstat.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

missing \n in fstat.c

Nicholas Marriott
kqueue lines in fstat output are missing a \n at the end of the line:

$ tail -f ~/.profile >/dev/null &
$ fstat|grep kqueue
nicholas tail       10592    4 kqueue 0xd65c20c0 0 state: Wnicholas ...

Patch below fixes.

-- Nicholas.

Index: fstat.c
===================================================================
RCS file: /cvs/src/usr.bin/fstat/fstat.c,v
retrieving revision 1.56
diff -u -u -r1.56 fstat.c
--- fstat.c 26 Mar 2006 17:47:11 -0000 1.56
+++ fstat.c 19 Jun 2006 20:43:04 -0000
@@ -742,7 +742,7 @@
  goto bad;
  }

- printf("kqueue %p %d state: %s%s", kq, kqi.kq_count,
+ printf("kqueue %p %d state: %s%s\n", kq, kqi.kq_count,
     (kqi.kq_state & KQ_SEL) ? "S" : "",
     (kqi.kq_state & KQ_SLEEP) ? "W" : "");
  return;