summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-11-04 07:39:48 +0100
committerJeremy Allison <jra@samba.org>2019-11-06 20:36:35 +0000
commit6e521461c5d57ddf01904e75b80602d662da9057 (patch)
tree3fb2c1fb4e7002032645f938b90d42924c5c3b48 /source3
parent8dd7b129138d9b89368eb0b5f8f04300672f2e98 (diff)
downloadsamba-6e521461c5d57ddf01904e75b80602d662da9057.tar.gz
smbd: Use file_id_str_buf() in downgrade_lease()
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.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index aa2bbd51b6e..97b1731584e 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -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);
}