mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:44:45 +01:00
Split SMB1 bits from cifs_debug.c to smb1debug.c. Signed-off-by: David Howells <dhowells@redhat.com> cc: Steve French <sfrench@samba.org> cc: Paulo Alcantara <pc@manguebit.org> cc: Enzo Matsumiya <ematsumiya@suse.de> cc: linux-cifs@vger.kernel.org cc: linux-fsdevel@vger.kernel.org cc: linux-kernel@vger.kernel.org Acked-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
25 lines
775 B
C
25 lines
775 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
*
|
|
* Copyright (C) International Business Machines Corp., 2000,2005
|
|
*
|
|
* Modified by Steve French (sfrench@us.ibm.com)
|
|
*/
|
|
#include "cifsproto.h"
|
|
#include "smb1proto.h"
|
|
#include "cifs_debug.h"
|
|
|
|
void cifs_dump_detail(void *buf, size_t buf_len, struct TCP_Server_Info *server)
|
|
{
|
|
#ifdef CONFIG_CIFS_DEBUG2
|
|
struct smb_hdr *smb = buf;
|
|
|
|
cifs_dbg(VFS, "Cmd: %d Err: 0x%x Flags: 0x%x Flgs2: 0x%x Mid: %d Pid: %d Wct: %d\n",
|
|
smb->Command, smb->Status.CifsError, smb->Flags,
|
|
smb->Flags2, smb->Mid, smb->Pid, smb->WordCount);
|
|
if (!server->ops->check_message(buf, buf_len, server->total_read, server)) {
|
|
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
|
|
server->ops->calc_smb_size(smb));
|
|
}
|
|
#endif /* CONFIG_CIFS_DEBUG2 */
|
|
}
|