diff options
author | Volker Lendecke <vl@samba.org> | 2013-09-15 19:18:41 -0700 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-10-06 13:56:47 +0200 |
commit | e9513bc6ab2974899a3f6ddc73886e969b142502 (patch) | |
tree | 4853f97a0896f304a949049d8d20c1e4e1bc5af4 /source3 | |
parent | 3a72cdb33aa34fa1d950b73c6ab6698bdc364bb4 (diff) | |
download | samba-e9513bc6ab2974899a3f6ddc73886e969b142502.tar.gz samba-e9513bc6ab2974899a3f6ddc73886e969b142502.tar.bz2 samba-e9513bc6ab2974899a3f6ddc73886e969b142502.zip |
smbd: Convert some dbgtxt to DEBUG
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/oplock.c | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c index 621886235f..70f168ed72 100644 --- a/source3/smbd/oplock.c +++ b/source3/smbd/oplock.c @@ -255,13 +255,11 @@ static files_struct *initial_break_processing( { files_struct *fsp = NULL; - if( DEBUGLVL( 3 ) ) { - dbgtext( "initial_break_processing: called for %s/%u\n", - file_id_string_tos(&id), (int)file_id); - dbgtext( "Current oplocks_open (exclusive = %d, levelII = %d)\n", - sconn->oplocks.exclusive_open, - sconn->oplocks.level_II_open); - } + DEBUG(3, ("initial_break_processing: called for %s/%u\n" + "Current oplocks_open (exclusive = %d, levelII = %d)\n", + file_id_string_tos(&id), (int)file_id, + sconn->oplocks.exclusive_open, + sconn->oplocks.level_II_open)); /* * We need to search the file open table for the @@ -273,11 +271,9 @@ static files_struct *initial_break_processing( if(fsp == NULL) { /* The file could have been closed in the meantime - return success. */ - if( DEBUGLVL( 3 ) ) { - dbgtext( "initial_break_processing: cannot find open file with " ); - dbgtext( "file_id %s gen_id = %lu, ", file_id_string_tos(&id), file_id); - dbgtext( "allowing break to succeed.\n" ); - } + DEBUG(3, ("initial_break_processing: cannot find open file " + "with file_id %s gen_id = %lu, allowing break to " + "succeed.\n", file_id_string_tos(&id), file_id)); return NULL; } @@ -292,13 +288,10 @@ static files_struct *initial_break_processing( */ if(fsp->oplock_type == NO_OPLOCK) { - if( DEBUGLVL( 3 ) ) { - dbgtext( "initial_break_processing: file %s ", - fsp_str_dbg(fsp)); - dbgtext( "(file_id = %s gen_id = %lu) has no oplock.\n", - file_id_string_tos(&id), fsp->fh->gen_id ); - dbgtext( "Allowing break to succeed regardless.\n" ); - } + DEBUG(3, ("initial_break_processing: file %s (file_id = %s " + "gen_id = %lu) has no oplock. Allowing break to " + "succeed regardless.\n", fsp_str_dbg(fsp), + file_id_string_tos(&id), fsp->fh->gen_id)); return NULL; } |