From 8784406f98dd4ddd98cec9cd728b70b22de3d1bf Mon Sep 17 00:00:00 2001 From: Chris Horn Date: Thu, 27 Jul 2017 15:10:15 -0500 Subject: [PATCH] LU-9803 tests: cast st_blksize for printf Compilation with -Werror=format complains about this printf. Expects unsigned long but st_blksize has type __blksize_t. Cast it to unsigned long for printf Test-Parameters: trivial Signed-off-by: Chris Horn Change-Id: I1eeb5613e485132de8f0bce08bd4d89887e52cf6 Reviewed-on: https://review.whamcloud.com/28262 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Patrick Farrell Reviewed-by: Oleg Drokin --- lustre/tests/directio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/directio.c b/lustre/tests/directio.c index df467e6..833ed41 100644 --- a/lustre/tests/directio.c +++ b/lustre/tests/directio.c @@ -106,8 +106,8 @@ int main(int argc, char **argv) return 1; } - printf("directio on %s for %dx%lu bytes \n", fname, blocks, - st.st_blksize); + printf("directio on %s for %dx%lu bytes\n", fname, blocks, + (unsigned long)st.st_blksize); seek = (off64_t)seek_blocks * (off64_t)st.st_blksize; len = blocks * st.st_blksize; -- 1.8.3.1