s3:smbd:smb2:scavenger: fix format error for debugging open_persistent_id in scavenge...
authorMichael Adam <obnox@samba.org>
Thu, 18 Apr 2013 21:45:24 +0000 (23:45 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 18 Apr 2013 23:36:15 +0000 (01:36 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Apr 19 01:36:15 CEST 2013 on sn-devel-104

source3/smbd/scavenger.c

index fe4e56e61390f48d6d4b4e673df97615b6db8f92..e6e287880656b0a9d505a7c490d53d0a7a3392ec 100644 (file)
@@ -480,16 +480,17 @@ static void scavenger_timer(struct tevent_context *ev,
                                             ctx->msg.open_persistent_id);
        if (!ok) {
                DEBUG(2, ("Failed to cleanup share modes and byte range locks "
-                         "for file %s open %lu\n",
+                         "for file %s open %llu\n",
                          file_id_string_tos(&ctx->msg.file_id),
-                         ctx->msg.open_persistent_id));
+                         (unsigned long long)ctx->msg.open_persistent_id));
        }
 
        status = smbXsrv_open_cleanup(ctx->msg.open_persistent_id);
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(2, ("Failed to cleanup open global for file %s open %lu:"
+               DEBUG(2, ("Failed to cleanup open global for file %s open %llu:"
                          " %s\n", file_id_string_tos(&ctx->msg.file_id),
-                         ctx->msg.open_persistent_id, nt_errstr(status)));
+                         (unsigned long long)ctx->msg.open_persistent_id,
+                         nt_errstr(status)));
        }
 }