mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
nvmecontrol: Move command effeccts page printing to little endian orderinng
Sponsored by: Netflix Reviewed by: chuck Differential Revision: https://reviews.freebsd.org/D44655 (cherry picked from commit b850caf7b7099636fd4323cb47a82f5201309fed)
This commit is contained in:
parent
067abd7d0b
commit
71484bbbff
1 changed files with 2 additions and 6 deletions
|
|
@ -220,10 +220,6 @@ read_logpage(int fd, uint8_t log_page, uint32_t nsid, uint8_t lsp,
|
|||
|
||||
/* Convert data to host endian */
|
||||
switch (log_page) {
|
||||
case NVME_LOG_COMMAND_EFFECT:
|
||||
nvme_command_effects_page_swapbytes(
|
||||
(struct nvme_command_effects_page *)payload);
|
||||
break;
|
||||
case NVME_LOG_RES_NOTIFICATION:
|
||||
nvme_res_notification_page_swapbytes(
|
||||
(struct nvme_res_notification_page *)payload);
|
||||
|
|
@ -442,7 +438,7 @@ print_log_command_effects(const struct nvme_controller_data *cdata __unused,
|
|||
printf(" Command\tLBCC\tNCC\tNIC\tCCC\tCSE\tUUID\n");
|
||||
|
||||
for (i = 0; i < 255; i++) {
|
||||
s = ce->acs[i];
|
||||
s = letoh(ce->acs[i]);
|
||||
if (NVMEV(NVME_CE_PAGE_CSUP, s) == 0)
|
||||
continue;
|
||||
printf("Admin\t%02x\t%s\t%s\t%s\t%s\t%u\t%s\n", i,
|
||||
|
|
@ -454,7 +450,7 @@ print_log_command_effects(const struct nvme_controller_data *cdata __unused,
|
|||
NVMEV(NVME_CE_PAGE_UUID, s) != 0 ? "Yes" : "No");
|
||||
}
|
||||
for (i = 0; i < 255; i++) {
|
||||
s = ce->iocs[i];
|
||||
s = letoh(ce->iocs[i]);
|
||||
if (NVMEV(NVME_CE_PAGE_CSUP, s) == 0)
|
||||
continue;
|
||||
printf("I/O\t%02x\t%s\t%s\t%s\t%s\t%u\t%s\n", i,
|
||||
|
|
|
|||
Loading…
Reference in a new issue