summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-11-09 20:57:14 +0100
committerJeremy Allison <jra@samba.org>2019-11-12 20:56:34 +0000
commit79291056c5b550c0afa8e4089758ad5e44e15cf0 (patch)
tree8526c848685005cfc45905c7886e5f6f94670e0d /source3
parentf7dc0334810723de5321f021e2d2be9d85a73939 (diff)
downloadsamba-79291056c5b550c0afa8e4089758ad5e44e15cf0.tar.gz
smbd: Use file_id_str_buf() in linux_release_kernel_oplock()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/oplock_linux.c6
1 files changed, 4 insertions, 2 deletions
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));
}