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 <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/416660
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Dariusz Stojaczyk 2018-06-24 22:56:19 +02:00 committed by Ben Walker
parent 962b15d0c4
commit 73a7ecfe17

View File

@ -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);
}