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 <hornc@cray.com>
Change-Id: I1eeb5613e485132de8f0bce08bd4d89887e52cf6
Reviewed-on: https://review.whamcloud.com/28262
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Patrick Farrell <paf@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
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;