diff options
author | Latchesar Ionkov <lucho@ionkov.net> | 2006-03-25 06:07:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:22:54 -0500 |
commit | 5174fdab9f58181249debab6e959ae4fd4abd0ed (patch) | |
tree | d5922acd425ffd35421dfe5ba17c5fb801888483 /fs/9p/mux.c | |
parent | 4a26c2429b8c1ab2be140a4b29aaf16d4dcd8f92 (diff) |
[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>
Diffstat (limited to 'fs/9p/mux.c')
-rw-r--r-- | fs/9p/mux.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/9p/mux.c b/fs/9p/mux.c index 3b10a36cefdb..d16f4f488fda 100644 --- a/fs/9p/mux.c +++ b/fs/9p/mux.c | |||
@@ -635,6 +635,14 @@ static void v9fs_read_work(void *a) | |||
635 | goto error; | 635 | goto error; |
636 | } | 636 | } |
637 | 637 | ||
638 | if ((v9fs_debug_level&DEBUG_FCALL) == DEBUG_FCALL) { | ||
639 | char buf[150]; | ||
640 | |||
641 | v9fs_printfcall(buf, sizeof(buf), m->rcall, | ||
642 | *m->extended); | ||
643 | printk(KERN_NOTICE ">>> %p %s\n", m, buf); | ||
644 | } | ||
645 | |||
638 | rcall = m->rcall; | 646 | rcall = m->rcall; |
639 | rbuf = m->rbuf; | 647 | rbuf = m->rbuf; |
640 | if (m->rpos > n) { | 648 | if (m->rpos > n) { |
@@ -740,6 +748,13 @@ static struct v9fs_req *v9fs_send_request(struct v9fs_mux_data *m, | |||
740 | 748 | ||
741 | v9fs_set_tag(tc, n); | 749 | v9fs_set_tag(tc, n); |
742 | 750 | ||
751 | if ((v9fs_debug_level&DEBUG_FCALL) == DEBUG_FCALL) { | ||
752 | char buf[150]; | ||
753 | |||
754 | v9fs_printfcall(buf, sizeof(buf), tc, *m->extended); | ||
755 | printk(KERN_NOTICE "<<< %p %s\n", m, buf); | ||
756 | } | ||
757 | |||
743 | req->tag = n; | 758 | req->tag = n; |
744 | req->tcall = tc; | 759 | req->tcall = tc; |
745 | req->rcall = NULL; | 760 | req->rcall = NULL; |