smbd: Use file_id_str_buf() in downgrade_lease()
authorVolker Lendecke <vl@samba.org>
Mon, 4 Nov 2019 06:39:48 +0000 (07:39 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 6 Nov 2019 20:36:35 +0000 (20:36 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/oplock.c

index aa2bbd51b6eb49316efd80bf4d8f81f558f265f3..97b1731584eb7889172f3199bad9b3f405e1846a 100644 (file)
@@ -480,9 +480,11 @@ NTSTATUS downgrade_lease(struct smbXsrv_connection *xconn,
        uint16_t lease_version, epoch;
        NTSTATUS status;
        uint32_t i;
+       struct file_id_buf idbuf;
 
-       DEBUG(10, ("%s: Downgrading %s to %x\n", __func__,
-                  file_id_string_tos(&id), (unsigned)lease_state));
+       DBG_DEBUG("Downgrading %s to %"PRIu32"\n",
+                 file_id_str_buf(id, &idbuf),
+                 lease_state);
 
        lck = get_existing_share_mode_lock(talloc_tos(), id);
        if (lck == NULL) {
@@ -652,8 +654,10 @@ NTSTATUS downgrade_lease(struct smbXsrv_connection *xconn,
                }
        }
 
-       DEBUG(10, ("%s: Downgrading %s to %x => %s\n", __func__,
-                  file_id_string_tos(&id), (unsigned)lease_state, nt_errstr(status)));
+       DBG_DEBUG("Downgrading %s to %"PRIu32" => %s\n",
+                 file_id_str_buf(id, &idbuf),
+                 lease_state,
+                 nt_errstr(status));
 
        /*
         * No, we did not modify the share mode array. We did modify
@@ -666,8 +670,11 @@ NTSTATUS downgrade_lease(struct smbXsrv_connection *xconn,
        fsps_lease_update(sconn, &id, key);
 
        TALLOC_FREE(lck);
-       DEBUG(10, ("%s: Downgrading %s to %x => %s\n", __func__,
-                  file_id_string_tos(&id), (unsigned)lease_state, nt_errstr(status)));
+
+       DBG_DEBUG("Downgrading %s to %"PRIu32" => %s\n",
+                 file_id_str_buf(id, &idbuf),
+                 lease_state,
+                 nt_errstr(status));
 
        /*
         * Dynamic share case. Ensure other opens are copies.
@@ -682,8 +689,10 @@ NTSTATUS downgrade_lease(struct smbXsrv_connection *xconn,
 
                fsps_lease_update(sconn, &ids[i], key);
 
-               DEBUG(10, ("%s: Downgrading %s to %x => %s\n", __func__,
-                       file_id_string_tos(&ids[i]), (unsigned)lease_state, nt_errstr(status)));
+               DBG_DEBUG("Downgrading %s to %"PRIu32" => %s\n",
+                         file_id_str_buf(ids[i], &idbuf),
+                         lease_state,
+                         nt_errstr(status));
 
                TALLOC_FREE(lck);
        }