diff options
author | Shiyang Ruan <ruansy.fnst@fujitsu.com> | 2023-11-23 16:58:43 +0800 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2023-12-09 12:51:34 +0800 |
commit | 9812168a1255b40df332d160906bc16e0279cc7b (patch) | |
tree | fe658390985039d3705a3e3e0f6c72dff92a583d | |
parent | 72e7d9bfdd8bd2c1f3bf40b971cd5ff37ba5f011 (diff) | |
download | xfstests-dev-9812168a1255b40df332d160906bc16e0279cc7b.tar.gz |
fsstress: unify verbose output format
Wrap offset, length within '[]' and remove meanless 't' in
do_fallocate().
Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
-rw-r--r-- | ltp/fsstress.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ltp/fsstress.c b/ltp/fsstress.c index 2681ed2b08..63c757672e 100644 --- a/ltp/fsstress.c +++ b/ltp/fsstress.c @@ -3810,7 +3810,7 @@ do_fallocate(opnum_t opno, long r, int mode) mode |= FALLOC_FL_KEEP_SIZE & random(); e = fallocate(fd, mode, (loff_t)off, (loff_t)len) < 0 ? errno : 0; if (v) - printf("%d/%lld: fallocate(%s) %s %st %lld %lld %d\n", + printf("%d/%lld: fallocate(%s) %s%s [%lld,%lld] %d\n", procid, opno, translate_falloc_flags(mode), f.path, st, (long long)off, (long long)len, e); free_pathname(&f); @@ -3932,7 +3932,7 @@ fiemap_f(opnum_t opno, long r) e = ioctl(fd, FS_IOC_FIEMAP, (unsigned long)fiemap); if (v) - printf("%d/%lld: ioctl(FIEMAP) %s%s %lld %lld (%s) %d\n", + printf("%d/%lld: ioctl(FIEMAP) %s%s [%lld,%lld,%s] %d\n", procid, opno, f.path, st, (long long)fiemap->fm_start, (long long) fiemap->fm_length, translate_fiemap_flags(fiemap->fm_flags), e); @@ -4866,7 +4866,7 @@ resvsp_f(opnum_t opno, long r) fl.l_len = (off64_t)(random() % (1024 * 1024)); e = xfsctl(f.path, fd, XFS_IOC_RESVSP64, &fl) < 0 ? errno : 0; if (v) - printf("%d/%lld: xfsctl(XFS_IOC_RESVSP64) %s%s %lld %lld %d\n", + printf("%d/%lld: xfsctl(XFS_IOC_RESVSP64) %s%s [%lld,%lld] %d\n", procid, opno, f.path, st, (long long)off, (long long)fl.l_len, e); free_pathname(&f); @@ -5334,7 +5334,7 @@ unresvsp_f(opnum_t opno, long r) fl.l_len = (off64_t)(random() % (1 << 20)); e = xfsctl(f.path, fd, XFS_IOC_UNRESVSP64, &fl) < 0 ? errno : 0; if (v) - printf("%d/%lld: xfsctl(XFS_IOC_UNRESVSP64) %s%s %lld %lld %d\n", + printf("%d/%lld: xfsctl(XFS_IOC_UNRESVSP64) %s%s [%lld,%lld] %d\n", procid, opno, f.path, st, (long long)off, (long long)fl.l_len, e); free_pathname(&f); |