From 73a7ecfe17b8044f62e97ed736ccbd435e739ff4 Mon Sep 17 00:00:00 2001 From: Dariusz Stojaczyk Date: Sun, 24 Jun 2018 22:56:19 +0200 Subject: [PATCH] ioat/verify: print missing status output on fill-only I/O There's currently no way to issue only fills unless the app is slightly modified. Nevertheless, this patch makes the code more readable. Change-Id: I15a6ed57ed06880d26970c4be7c2db3b7326d3d4 Signed-off-by: Dariusz Stojaczyk Reviewed-on: https://review.gerrithub.io/416660 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Daniel Verkamp Reviewed-by: Shuhei Matsumoto --- examples/ioat/verify/verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ioat/verify/verify.c b/examples/ioat/verify/verify.c index dbc82e95f..ba462323c 100644 --- a/examples/ioat/verify/verify.c +++ b/examples/ioat/verify/verify.c @@ -426,7 +426,7 @@ dump_result(struct thread_entry *threads, uint32_t num_threads) total_completed += t->fill_completed; total_failed += t->xfer_failed; total_failed += t->fill_failed; - if (t->xfer_completed || t->xfer_failed) + if (total_completed || total_failed) printf("lcore = %d, copy success = %ld, copy failed = %ld, fill success = %ld, fill failed = %ld\n", t->lcore_id, t->xfer_completed, t->xfer_failed, t->fill_completed, t->fill_failed); }