diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-03-23 14:28:02 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2012-03-23 14:28:02 -0400 |
commit | 792af7b05b8a78def080ec757a4d4420b9fd0cc2 (patch) | |
tree | 6f6d556f155194295375f3d4ad6cbfabbd7aeeeb /fs/cifs/misc.c | |
parent | 934e18b5cb4531cc6e81865bf54115cfd21d1ac6 (diff) |
CIFS: Separate protocol-specific code from transport routines
that lets us use this functions for SMB2.
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r-- | fs/cifs/misc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index c273c12de98e..e88601fc6f22 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c | |||
@@ -604,16 +604,15 @@ is_valid_oplock_break(struct smb_hdr *buf, struct TCP_Server_Info *srv) | |||
604 | } | 604 | } |
605 | 605 | ||
606 | void | 606 | void |
607 | dump_smb(struct smb_hdr *smb_buf, int smb_buf_length) | 607 | dump_smb(void *buf, int smb_buf_length) |
608 | { | 608 | { |
609 | int i, j; | 609 | int i, j; |
610 | char debug_line[17]; | 610 | char debug_line[17]; |
611 | unsigned char *buffer; | 611 | unsigned char *buffer = buf; |
612 | 612 | ||
613 | if (traceSMB == 0) | 613 | if (traceSMB == 0) |
614 | return; | 614 | return; |
615 | 615 | ||
616 | buffer = (unsigned char *) smb_buf; | ||
617 | for (i = 0, j = 0; i < smb_buf_length; i++, j++) { | 616 | for (i = 0, j = 0; i < smb_buf_length; i++, j++) { |
618 | if (i % 8 == 0) { | 617 | if (i % 8 == 0) { |
619 | /* have reached the beginning of line */ | 618 | /* have reached the beginning of line */ |