examples/nvme/identify: print Command Retry Delay Time if exist

Change-Id: I7a9ea6054b853bd1abe7cbf7c918a220b1234485
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9263
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Changpeng Liu 2021-08-24 17:45:01 +08:00 committed by Tomasz Zawadzki
parent 19ad1783e4
commit e4913b3c7f

View File

@ -1573,6 +1573,15 @@ print_controller(struct spdk_nvme_ctrlr *ctrlr, const struct spdk_nvme_transport
} else {
printf(" Not Supported\n");
}
if (cdata->crdt[0]) {
printf("Command Retry Delay Time 1: %u milliseconds\n", cdata->crdt[0] * 100);
}
if (cdata->crdt[1]) {
printf("Command Retry Delay Time 2: %u milliseconds\n", cdata->crdt[1] * 100);
}
if (cdata->crdt[2]) {
printf("Command Retry Delay Time 3: %u milliseconds\n", cdata->crdt[2] * 100);
}
printf("\n");
printf("Firmware Slot Information\n");