diff options
author | Miles Bader <miles@gnu.org> | 1995-10-04 22:13:27 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-10-04 22:13:27 +0000 |
commit | 927e54a7c936792ac6ffb6db2016af819eee8fff (patch) | |
tree | d883f5f61a3f45d401b62a1dd563dfc0408a48ab /devio | |
parent | 41cbe5c58587ef185f2c0820ba7e75ca8253e64b (diff) |
(open_write, open_read): Get rid of debugging noise.
Diffstat (limited to 'devio')
-rw-r--r-- | devio/rdwr.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/devio/rdwr.c b/devio/rdwr.c index b8431d7a..67f087a0 100644 --- a/devio/rdwr.c +++ b/devio/rdwr.c @@ -391,28 +391,6 @@ open_write(struct open *open, vm_address_t buf, vm_size_t len, else err = window_write(open->window, buf, len, amount, state.offs_p); -#ifdef MSG - if (debug) - { - char *mode = - (dev_is(dev, DEV_BUFFERED) - ? dev_is(dev, DEV_SERIAL) ? "buffered" : "windowed" : "raw"); - char *estr = err ? strerror(err) : "OK"; - char *bstr = err ? "-" : brep(buf, len); - - mutex_lock(&debug_lock); - fprintf(debug, "open_rdwr:\n using %s offset\n", - (state.user_offs == -1 || !dev_is(dev, DEV_BUFFERED)) - ? (state.offs_p == &dev->io_state.location - ? "device" : "open") - : "msg"); - fprintf(debug, " %s write(%s, %d, %d) => %s, %d\n", - mode, bstr, len, (int)offs, estr, *amount); - fprintf(debug, " offset = %d\n", (int)*state.offs_p); - mutex_unlock(&debug_lock); - } -#endif - rdwr_state_finalize(&state); return err; @@ -447,28 +425,6 @@ open_read(struct open *open, vm_address_t *buf, vm_size_t *buf_len, else err = window_read(open->window, buf, buf_len, amount, state.offs_p); -#ifdef MSG - if (debug) - { - char *mode = - (dev_is(dev, DEV_BUFFERED) - ? dev_is(dev, DEV_SERIAL) ? "buffered" : "windowed" : "raw"); - char *estr = err ? strerror(err) : "OK"; - char *bstr = err ? "-" : brep(*buf, *buf_len); - - mutex_lock(&debug_lock); - fprintf(debug, "open_rdwr:\n using %s offset\n", - (state.user_offs == -1 || !dev_is(dev, DEV_BUFFERED)) - ? (state.offs_p == &dev->io_state.location - ? "device" : "open") - : "msg"); - fprintf(debug, " %s read(%d, %d) => %s, %s, %d\n", - mode, amount, (int)offs, estr, bstr, *buf_len); - fprintf(debug, " offset = %d\n", (int)*state.offs_p); - mutex_unlock(&debug_lock); - } -#endif - rdwr_state_finalize(&state); return err; |