Message ID | 20240613181745.1052423-4-bodonnel@redhat.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | xfsprogs: coverity fixes | expand |
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/fsr/xfs_fsr.c b/fsr/xfs_fsr.c index fdd37756..d204e3a4 100644 --- a/fsr/xfs_fsr.c +++ b/fsr/xfs_fsr.c @@ -426,7 +426,7 @@ 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 %ld -f %s ...\n", mtab, howlong, leftofffile); endtime = starttime + howlong; fs = fsbase;
Use %ld instead of %d for howlong variable. Coverity-id: 1596598 Signed-off-by: Bill O'Donnell <bodonnel@redhat.com> --- fsr/xfs_fsr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)