From: Volker Lendecke Date: Tue, 9 Sep 2008 12:43:20 +0000 (+0200) Subject: Add some debug to reply_nttrans X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23e9fed28cf9998534b3c55f4b20a562da507552;p=thirdparty%2Fsamba.git Add some debug to reply_nttrans --- diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index 567c428bb84..584399c86c9 100644 --- a/source/smbd/nttrans.c +++ b/source/smbd/nttrans.c @@ -2582,6 +2582,17 @@ void reply_nttrans(struct smb_request *req) state->setup = NULL; state->call = function_code; + DEBUG(10, ("num_setup=%u, " + "param_total=%u, this_param=%u, max_param=%u, " + "data_total=%u, this_data=%u, max_data=%u, " + "param_offset=%u, data_offset=%u\n", + (unsigned)state->setup_count, + (unsigned)state->total_param, (unsigned)pscnt, + (unsigned)state->max_param_return, + (unsigned)state->total_data, (unsigned)dscnt, + (unsigned)state->max_data_return, + (unsigned)psoff, (unsigned)dsoff)); + /* * All nttrans messages we handle have smb_wct == 19 + * state->setup_count. Ensure this is so as a sanity check.