sconn->oplocks.exclusive_open++;
}
- DEBUG(5,("set_file_oplock: granted oplock on file %s, %s/%lu, "
- "tv_sec = %x, tv_usec = %x\n",
- fsp_str_dbg(fsp), file_id_string_tos(&fsp->file_id),
- fsp->fh->gen_id, (int)fsp->open_time.tv_sec,
- (int)fsp->open_time.tv_usec ));
+ DBG_INFO("granted oplock on file %s, %s/%"PRIu64", "
+ "tv_sec = %x, tv_usec = %x\n",
+ fsp_str_dbg(fsp),
+ file_id_string_tos(&fsp->file_id),
+ fsp->fh->gen_id,
+ (int)fsp->open_time.tv_sec,
+ (int)fsp->open_time.tv_usec);
return NT_STATUS_OK;
}
*/
if(fsp->oplock_type == NO_OPLOCK) {
- 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));
+ DBG_NOTICE("file %s (file_id = %s gen_id = %"PRIu64") "
+ "has no oplock. "
+ "Allowing break to succeed regardless.\n",
+ fsp_str_dbg(fsp),
+ file_id_string_tos(&id),
+ fsp->fh->gen_id);
return NULL;
}
return False;
}
- DEBUG(3,("linux_set_kernel_oplock: got kernel oplock on file %s, "
- "file_id = %s gen_id = %lu\n",
- fsp_str_dbg(fsp), file_id_string_tos(&fsp->file_id),
- fsp->fh->gen_id));
+ DBG_NOTICE("got kernel oplock on file %s, "
+ "file_id = %s gen_id = %"PRIu64"\n",
+ fsp_str_dbg(fsp),
+ file_id_string_tos(&fsp->file_id),
+ fsp->fh->gen_id);
return True;
}
*/
int state = fcntl(fsp->fh->fd, F_GETLEASE, 0);
dbgtext("linux_release_kernel_oplock: file %s, file_id = %s "
- "gen_id = %lu has kernel oplock state "
- "of %x.\n", fsp_str_dbg(fsp),
+ "gen_id = %"PRIu64" has kernel oplock state "
+ "of %x.\n",
+ fsp_str_dbg(fsp),
file_id_string_tos(&fsp->file_id),
- fsp->fh->gen_id, state );
+ fsp->fh->gen_id,
+ state);
}
/*
if (DEBUGLVL(0)) {
dbgtext("linux_release_kernel_oplock: Error when "
"removing kernel oplock on file " );
- dbgtext("%s, file_id = %s, gen_id = %lu. "
- "Error was %s\n", fsp_str_dbg(fsp),
+ dbgtext("%s, file_id = %s, gen_id = %"PRIu64". "
+ "Error was %s\n",
+ fsp_str_dbg(fsp),
file_id_string_tos(&fsp->file_id),
- fsp->fh->gen_id, strerror(errno) );
+ fsp->fh->gen_id,
+ strerror(errno));
}
}
}