From 0d246a156da8047b86a8cfab00f5760a840eec60 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 9 Nov 2019 21:05:41 +0100 Subject: [PATCH] smbd: Use file_id_str_buf() in share_mode_memcache_store() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/locking/share_mode_lock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index 92289404468..e6b7b6289ef 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -177,11 +177,12 @@ static DATA_BLOB memcache_key(const struct file_id *id) static void share_mode_memcache_store(struct share_mode_data *d) { const DATA_BLOB key = memcache_key(&d->id); + struct file_id_buf idbuf; DBG_DEBUG("stored entry for file %s seq %"PRIx64" key %s\n", d->base_name, d->sequence_number, - file_id_string(talloc_tos(), &d->id)); + file_id_str_buf(d->id, &idbuf)); /* Ensure everything stored in the cache is pristine. */ d->modified = false; -- 2.47.3