Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160910783
D44655.id137220.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1009 B
Referenced Files
None
Subscribers
None
D44655.id137220.diff
View Options
diff --git a/sbin/nvmecontrol/logpage.c b/sbin/nvmecontrol/logpage.c
--- a/sbin/nvmecontrol/logpage.c
+++ b/sbin/nvmecontrol/logpage.c
@@ -219,10 +219,6 @@
/* 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);
@@ -441,7 +437,7 @@
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,
@@ -453,7 +449,7 @@
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,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 29, 11:34 PM (6 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34476788
Default Alt Text
D44655.id137220.diff (1009 B)
Attached To
Mode
D44655: nvmecontrol: Move command effeccts page printing to little endian orderinng
Attached
Detach File
Event Timeline
Log In to Comment