From 79291056c5b550c0afa8e4089758ad5e44e15cf0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 9 Nov 2019 20:57:14 +0100 Subject: smbd: Use file_id_str_buf() in linux_release_kernel_oplock() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/oplock_linux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3') 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)); } -- cgit v1.2.1