From: Volker Lendecke Date: Sat, 9 Nov 2019 19:57:14 +0000 (+0100) Subject: smbd: Use file_id_str_buf() in linux_release_kernel_oplock() X-Git-Tag: talloc-2.3.1~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79291056c5b550c0afa8e4089758ad5e44e15cf0;p=thirdparty%2Fsamba.git smbd: Use file_id_str_buf() in linux_release_kernel_oplock() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/oplock_linux.c b/source3/smbd/oplock_linux.c index bc5c08b7931..7549d492ce0 100644 --- a/source3/smbd/oplock_linux.c +++ b/source3/smbd/oplock_linux.c @@ -168,6 +168,8 @@ static bool linux_set_kernel_oplock(struct kernel_oplocks *ctx, static void linux_release_kernel_oplock(struct kernel_oplocks *ctx, files_struct *fsp, int oplock_type) { + struct file_id_buf idbuf; + if (DEBUGLVL(10)) { /* * Check and print out the current kernel @@ -178,7 +180,7 @@ static void linux_release_kernel_oplock(struct kernel_oplocks *ctx, "gen_id = %"PRIu64" has kernel oplock state " "of %x.\n", fsp_str_dbg(fsp), - file_id_string_tos(&fsp->file_id), + file_id_str_buf(fsp->file_id, &idbuf), fsp->fh->gen_id, state); } @@ -193,7 +195,7 @@ static void linux_release_kernel_oplock(struct kernel_oplocks *ctx, dbgtext("%s, file_id = %s, gen_id = %"PRIu64". " "Error was %s\n", fsp_str_dbg(fsp), - file_id_string_tos(&fsp->file_id), + file_id_str_buf(fsp->file_id, &idbuf), fsp->fh->gen_id, strerror(errno)); }