diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-13 15:09:39 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-13 15:09:39 +0200 |
commit | 8e11ff283f1e7c36b23e6e52c2ab0ca12a7713f9 (patch) | |
tree | 21ae354f7121d196046b6b9c36a18232afb38e43 /sys/src/cmd/cwfs/9p1lib.c | |
parent | 53f5bdfd06cce8093de005b8d706b752d3567cfa (diff) |
cwfs: make /srv/cwfs.cmd redable to receive command output
before, cwfs would print everything to /dev/cons. this change
will redirect the output of commands to the /srv/cwfs.cmd pipe
so one can use:
con -C /srv/cwfs.cmd
and not have the fish for the output in /dev/kmesg.
use standard error (/dev/cons) for unsolicited messages as
there is not always a reader on the command file.
Diffstat (limited to 'sys/src/cmd/cwfs/9p1lib.c')
-rw-r--r-- | sys/src/cmd/cwfs/9p1lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/cwfs/9p1lib.c b/sys/src/cmd/cwfs/9p1lib.c index 32072cf33..b6833bfaa 100644 --- a/sys/src/cmd/cwfs/9p1lib.c +++ b/sys/src/cmd/cwfs/9p1lib.c @@ -31,7 +31,7 @@ convS2M9p1(Fcall *f, uchar *ap) SHORT(tag); switch(t) { default: - print("convS2M9p1: bad type: %d\n", t); + fprint(2, "convS2M9p1: bad type: %d\n", t); return 0; case Tnop: @@ -298,7 +298,7 @@ convM2S9p1(uchar *ap, Fcall *f, int n) * only whine if it couldn't be a 9P2000 Tversion. */ if(t != 19 || ap[4] != 100) - print("convM2S9p1: bad type: %d\n", f->type); + fprint(2, "convM2S9p1: bad type: %d\n", f->type); return 0; case Tnop: |