]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_fsr: correct type in fsrprintf() call
authorBill O'Donnell <bodonnel@redhat.com>
Fri, 14 Jun 2024 16:00:15 +0000 (11:00 -0500)
committerCarlos Maiolino <cem@kernel.org>
Mon, 17 Jun 2024 11:54:49 +0000 (13:54 +0200)
Use %lld instead of %d for howlong variable.

Coverity-id: 1596598

Signed-off-by: Bill O'Donnell <bodonnel@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fsr/xfs_fsr.c

index fdd37756030a784698001647a0b8f90940fb6864..06cc0552f9f192f0e80090c0a526a5cdf9976807 100644 (file)
@@ -426,7 +426,8 @@ fsrallfs(char *mtab, time_t howlong, char *leftofffile)
        fsdesc_t *fsp;
        struct stat sb, sb2;
 
-       fsrprintf("xfs_fsr -m %s -t %d -f %s ...\n", mtab, howlong, leftofffile);
+       fsrprintf("xfs_fsr -m %s -t %lld -f %s ...\n", mtab,
+                 (long long)howlong, leftofffile);
 
        endtime = starttime + howlong;
        fs = fsbase;