smbd: Use file_id_str_buf() in set_sticky_write_time()
authorVolker Lendecke <vl@samba.org>
Fri, 6 Sep 2019 05:31:22 +0000 (07:31 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 10 Sep 2019 23:14:31 +0000 (23:14 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/locking.c

index 97ef4d220d0fc6e903b00333bc80b564f8f95d8a..5026cdbe58d21e2c3775cdb6decfbeff384489e0 100644 (file)
@@ -1168,11 +1168,12 @@ bool is_delete_on_close_set(struct share_mode_lock *lck, uint32_t name_hash)
 bool set_sticky_write_time(struct file_id fileid, struct timespec write_time)
 {
        struct share_mode_lock *lck;
+       struct file_id_buf ftmp;
 
-       DEBUG(5,("set_sticky_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, &ftmp));
 
        lck = get_existing_share_mode_lock(talloc_tos(), fileid);
        if (lck == NULL) {