Page MenuHomeFreeBSD

D34700.diff
No OneTemporary

D34700.diff

diff --git a/sbin/nvmecontrol/identify_ext.c b/sbin/nvmecontrol/identify_ext.c
--- a/sbin/nvmecontrol/identify_ext.c
+++ b/sbin/nvmecontrol/identify_ext.c
@@ -204,16 +204,8 @@
}
printf("Abort Command Limit: %d\n", cdata->acl+1);
printf("Async Event Request Limit: %d\n", cdata->aerl+1);
- printf("Number of Firmware Slots: ");
- if (fw != 0)
- printf("%d\n", fw_num_slots);
- else
- printf("N/A\n");
- printf("Firmware Slot 1 Read-Only: ");
- if (fw != 0)
- printf("%s\n", fw_slot1_ro ? "Yes" : "No");
- else
- printf("N/A\n");
+ printf("Number of Firmware Slots: %d\n", fw_num_slots);
+ printf("Firmware Slot 1 Read-Only: %s\n", fw_slot1_ro ? "Yes" : "No");
printf("Per-Namespace SMART Log: %s\n",
ns_smart ? "Yes" : "No");
printf("Error Log Page Entries: %d\n", cdata->elpe+1);

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 1:38 PM (5 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16198163
Default Alt Text
D34700.diff (827 B)

Event Timeline