found some unused variables, already.
* Usage:
* DEBUGADD( 2, ("Some additional text.\n") );
*/
+
+#ifdef NO_DEBUG_REPORTING
+
+#define DEBUGLVL( level ) (True)
+
+#define DEBUG( level , body ) (void)(False)
+
+#define DEBUGADD( level , body ) (void)(False)
+
+#else
+
#define DEBUGLVL( level ) \
( (DEBUGLEVEL >= (level)) \
&& dbghdr( level, FILE_MACRO, FUNCTION_MACRO, (__LINE__) ) )
#define DEBUGADD( level, body ) \
(void)( (DEBUGLEVEL >= (level)) && (dbgtext body) )
+#endif
+
/* -------------------------------------------------------------------------- **
* These are the tokens returned by dbg_char2token().
*/
int max_send_pdu)
{
int len;
- uint16 cmd = 0x0026;
cli_auth_fns *auth = cli_conn_get_authfns(con);
BOOL first = True;
RPC_HDR rhdr;
size_t data_len = data->data_size;
int max_data_len = MAX(data_len, 2048);
- DEBUG(5, ("cli_send_and_rcv_pdu_trans: cmd:%x fnum:%x\n", cmd, fnum));
+ DEBUG(5, ("cli_send_and_rcv_pdu_trans: fnum:%x\n", fnum));
DEBUG(10, ("cli_send_and_rcv_pdu_trans: len: %d\n", data_len));
{
int len;
int data_offset = 0;
- uint16 cmd = 0x0026;
cli_auth_fns *auth = cli_conn_get_authfns(con);
BOOL first = True;
char *d = NULL;
size_t data_left = data->data_size;
size_t data_len = data->data_size;
- DEBUG(5, ("cli_send_and_rcv_pdu_rw: cmd:%x fnum:%x\n", cmd, fnum));
+ DEBUG(5, ("cli_send_and_rcv_pdu_rw: fnum:%x\n", fnum));
while (data_offset < data_len)
{
BOOL res1 = True;
BOOL res2 = True;
uint32 start_idx = 0x0;
- uint16 unk_0 = 0x0;
uint16 acb_mask = 0;
uint16 unk_1 = 0x0;
uint32 ace_perms = 0x304; /* access control permissions */
string_to_sid(&sid_1_5_20, "S-1-5-32");
- DEBUG(5,("Number of entries:%d unk_0:%04x acb_mask:%04x unk_1:%04x\n",
- start_idx, unk_0, acb_mask, unk_1));
+ DEBUG(5,("Number of entries:%d :%04x unk_1:%04x\n",
+ start_idx, acb_mask, unk_1));
/* establish a connection. */
res = res ? samr_connect( srv_name, SEC_RIGHTS_MAXIMUM_ALLOWED,