smbd: Use file_id_str_buf() in set_write_time()
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/locking/locking.c

index f90458d9d4f057ac4348a1c1760ad239ac0d157e..52309e5fc81661592411a77c764ba1a68ab51578 100644 (file)
@@ -1013,11 +1013,12 @@ bool set_sticky_write_time(struct file_id fileid, struct timespec write_time)
 bool set_write_time(struct file_id fileid, struct timespec write_time)
 {
        struct share_mode_lock *lck;
+       struct file_id_buf idbuf;
 
-       DEBUG(5,("set_write_time: %s id=%s\n",
+       DBG_INFO("%s id=%s\n",
                 timestring(talloc_tos(),
                            convert_timespec_to_time_t(write_time)),
-                file_id_string_tos(&fileid)));
+                file_id_str_buf(fileid, &idbuf));
 
        lck = get_existing_share_mode_lock(talloc_tos(), fileid);
        if (lck == NULL) {