]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Use file_id_str_buf() in linux_release_kernel_oplock()
authorVolker Lendecke <vl@samba.org>
Sat, 9 Nov 2019 19:57:14 +0000 (20:57 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 12 Nov 2019 20:56:34 +0000 (20:56 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/oplock_linux.c

index bc5c08b79319335b3272efa1589411aabc187917..7549d492ce088600af36b4464569f3b81c1869a3 100644 (file)
@@ -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));
                }