From: Volker Lendecke Date: Sat, 9 Nov 2019 20:05:41 +0000 (+0100) Subject: smbd: Use file_id_str_buf() in share_mode_memcache_store() X-Git-Tag: talloc-2.3.1~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d246a156da8047b86a8cfab00f5760a840eec60;p=thirdparty%2Fsamba.git smbd: Use file_id_str_buf() in share_mode_memcache_store() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- 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;