Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144382306
D44653.id137218.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
753 B
Referenced Files
None
Subscribers
None
D44653.id137218.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,9 +219,6 @@
/* Convert data to host endian */
switch (log_page) {
- case NVME_LOG_CHANGED_NAMESPACE:
- nvme_ns_list_swapbytes((struct nvme_ns_list *)payload);
- break;
case NVME_LOG_DEVICE_SELF_TEST:
nvme_device_self_test_swapbytes(
(struct nvme_device_self_test_page *)payload);
@@ -429,8 +426,8 @@
printf("Changed Namespace List\n");
printf("======================\n");
- for (i = 0; i < nitems(nsl->ns) && nsl->ns[i] != 0; i++) {
- printf("%08x\n", nsl->ns[i]);
+ for (i = 0; i < nitems(nsl->ns) && letoh(nsl->ns[i]) != 0; i++) {
+ printf("%08x\n", letoh(nsl->ns[i]));
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 4:06 AM (6 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28534320
Default Alt Text
D44653.id137218.diff (753 B)
Attached To
Mode
D44653: nvmecontrol: Move namespace change page printing to little endian orderinng
Attached
Detach File
Event Timeline
Log In to Comment