projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f626c94
)
r191: Beautify debugging output (Phillip)
author
yoe <yoe>
Sat, 7 Oct 2006 14:14:04 +0000
(14:14 +0000)
committer
yoe <yoe>
Sat, 7 Oct 2006 14:14:04 +0000
(14:14 +0000)
nbd-server.c
patch
|
blob
|
history
diff --git
a/nbd-server.c
b/nbd-server.c
index
3a8d3aa
..
a35aafb
100644
(file)
--- a/
nbd-server.c
+++ b/
nbd-server.c
@@
-707,7
+707,7
@@
ssize_t rawexpwrite(off_t a, char *buf, size_t len, CLIENT *client) {
if(maxbytes && len > maxbytes)
len = maxbytes;
if(maxbytes && len > maxbytes)
len = maxbytes;
- DEBUG4("\tWRITE %u bytes to fd %d, offset %Lu.\n", len, fhandle, foffset);
+ DEBUG4("(WRITE to fd %d offset %Lu len %u), ", fhandle, foffset, len);
myseek(fhandle, foffset);
return write(fhandle, buf, len);
myseek(fhandle, foffset);
return write(fhandle, buf, len);
@@
-749,7
+749,7
@@
ssize_t rawexpread(off_t a, char *buf, size_t len, CLIENT *client) {
if(maxbytes && len > maxbytes)
len = maxbytes;
if(maxbytes && len > maxbytes)
len = maxbytes;
- DEBUG4("\tREAD %u bytes from fd %d, offset %Lu.\n", len, fhandle, foffset);
+ DEBUG4("(READ from fd %d offset %Lu len %u), ", fhandle, foffset, len);
myseek(fhandle, foffset);
return read(fhandle, buf, len);
myseek(fhandle, foffset);
return read(fhandle, buf, len);