summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs/fworm.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-07-13 15:09:39 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-07-13 15:09:39 +0200
commit8e11ff283f1e7c36b23e6e52c2ab0ca12a7713f9 (patch)
tree21ae354f7121d196046b6b9c36a18232afb38e43 /sys/src/cmd/cwfs/fworm.c
parent53f5bdfd06cce8093de005b8d706b752d3567cfa (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/fworm.c')
-rw-r--r--sys/src/cmd/cwfs/fworm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/cwfs/fworm.c b/sys/src/cmd/cwfs/fworm.c
index ccfd53410..5cc20a36c 100644
--- a/sys/src/cmd/cwfs/fworm.c
+++ b/sys/src/cmd/cwfs/fworm.c
@@ -54,7 +54,7 @@ fwormread(Device *d, Off b, void *c)
Devsize l;
if(chatty > 1)
- print("fworm read %lld\n", (Wideoff)b);
+ fprint(2, "fworm read %lld\n", (Wideoff)b);
fdev = FDEV(d);
l = devsize(fdev);
l -= l/(BUFSIZE*8) + 1;
@@ -83,7 +83,7 @@ fwormwrite(Device *d, Off b, void *c)
Devsize l;
if(chatty > 1)
- print("fworm write %lld\n", (Wideoff)b);
+ fprint(2, "fworm write %lld\n", (Wideoff)b);
fdev = FDEV(d);
l = devsize(fdev);
l -= l/(BUFSIZE*8) + 1;