]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture: Avoid a few casts in vfstest
authorVolker Lendecke <vl@samba.org>
Tue, 27 Jan 2026 17:08:10 +0000 (18:08 +0100)
committerAnoop C S <anoopcs@samba.org>
Sun, 15 Feb 2026 10:42:33 +0000 (10:42 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/torture/cmd_vfs.c

index 59bb0db59a5bb5e02662ae43ee0852439f8b244d..a6069cdc3b41cda8de2df4cf95d0cc3e73f9a4f9 100644 (file)
@@ -138,11 +138,12 @@ static NTSTATUS cmd_disk_free(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int ar
        }
        diskfree = SMB_VFS_DISK_FREE(vfs->conn, smb_fname,
                                &bsize, &dfree, &dsize);
-       printf("disk_free: %lu, bsize = %lu, dfree = %lu, dsize = %lu\n",
-                       (unsigned long)diskfree,
-                       (unsigned long)bsize,
-                       (unsigned long)dfree,
-                       (unsigned long)dsize);
+       printf("disk_free: %" PRIu64 ", bsize = %" PRIu64 ", dfree = %" PRIu64
+              ", dsize = %" PRIu64 "\n",
+              diskfree,
+              bsize,
+              dfree,
+              dsize);
        return NT_STATUS_OK;
 }