X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Ftest_brw.c;h=d0773e970bb263bf2db2ea64bc0cd4bc22e077f4;hp=36ffd68008fe755c224091e3d9e16e633b7e4365;hb=6ac2f14f0f622863c330b8b96da9373bad1abeb5;hpb=512f2ff1b17db4d03979a1caa86f94defc6653b4 diff --git a/lustre/tests/test_brw.c b/lustre/tests/test_brw.c index 36ffd68..d0773e9 100644 --- a/lustre/tests/test_brw.c +++ b/lustre/tests/test_brw.c @@ -48,8 +48,10 @@ #include #include #include +#include -#include +#include +#include #define READ 1 #define WRITE 2 @@ -77,24 +79,24 @@ int block_debug_check(char *who, void *addr, int size, __u64 off, __u64 id) ne_off = le64_to_cpu(off); id = le64_to_cpu(id); if (memcmp(addr, (char *)&ne_off, LPDS)) { - CERROR("%s: for offset "LPU64" off: "LPX64" != "LPX64"\n", + fprintf(stderr, "%s: for offset "LPU64" off: "LPX64" != "LPX64"\n", who, off, *(__u64 *)addr, ne_off); err = -EINVAL; } if (memcmp(addr + LPDS, (char *)&id, LPDS)) { - CERROR("%s: for offset "LPU64" id: "LPX64" != "LPX64"\n", + fprintf(stderr, "%s: for offset "LPU64" id: "LPX64" != "LPX64"\n", who, off, *(__u64 *)(addr + LPDS), id); err = -EINVAL; } addr += size - LPDS - LPDS; if (memcmp(addr, (char *)&ne_off, LPDS)) { - CERROR("%s: for offset "LPU64" end off: "LPX64" != "LPX64"\n", + fprintf(stderr, "%s: for offset "LPU64" end off: "LPX64" != "LPX64"\n", who, off, *(__u64 *)addr, ne_off); err = -EINVAL; } if (memcmp(addr + LPDS, (char *)&id, LPDS)) { - CERROR("%s: for offset "LPU64" end id: "LPX64" != "LPX64"\n", + fprintf(stderr, "%s: for offset "LPU64" end id: "LPX64" != "LPX64"\n", who, off, *(__u64 *)(addr + LPDS), id); err = -EINVAL; }