Changeset View
Changeset View
Standalone View
Standalone View
sbin/nvmecontrol/devlist.c
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | for (i = 0; i < cdata.nn; i++) { | ||||
nsdata.nsze * | nsdata.nsze * | ||||
(long long)ns_get_sector_size(&nsdata) / | (long long)ns_get_sector_size(&nsdata) / | ||||
1024 / 1024); | 1024 / 1024); | ||||
} | } | ||||
close(fd); | close(fd); | ||||
} | } | ||||
if (found == 0) | if (found == 0) { | ||||
printf("No NVMe controllers found.\n"); | printf("No NVMe controllers found.\n"); | ||||
exit(1); | exit(1); | ||||
} | |||||
exit(0); | |||||
imp: This change is good, but I'd be tempted to commit it separately. | |||||
} | } |
This change is good, but I'd be tempted to commit it separately.