[PATCH] v9fs: print 9p messages
Print 9p messages. Signed-off-by: Latchesar Ionkov <lucho@ionkov.net> Cc: Eric Van Hensbergen <ericvh@ericvh.myip.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
4a26c2429b
commit
5174fdab9f
15
fs/9p/mux.c
15
fs/9p/mux.c
@@ -635,6 +635,14 @@ static void v9fs_read_work(void *a)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if ((v9fs_debug_level&DEBUG_FCALL) == DEBUG_FCALL) {
|
||||
char buf[150];
|
||||
|
||||
v9fs_printfcall(buf, sizeof(buf), m->rcall,
|
||||
*m->extended);
|
||||
printk(KERN_NOTICE ">>> %p %s\n", m, buf);
|
||||
}
|
||||
|
||||
rcall = m->rcall;
|
||||
rbuf = m->rbuf;
|
||||
if (m->rpos > n) {
|
||||
@@ -740,6 +748,13 @@ static struct v9fs_req *v9fs_send_request(struct v9fs_mux_data *m,
|
||||
|
||||
v9fs_set_tag(tc, n);
|
||||
|
||||
if ((v9fs_debug_level&DEBUG_FCALL) == DEBUG_FCALL) {
|
||||
char buf[150];
|
||||
|
||||
v9fs_printfcall(buf, sizeof(buf), tc, *m->extended);
|
||||
printk(KERN_NOTICE "<<< %p %s\n", m, buf);
|
||||
}
|
||||
|
||||
req->tag = n;
|
||||
req->tcall = tc;
|
||||
req->rcall = NULL;
|
||||
|
Reference in New Issue
Block a user