git: 5e5e4e1cf0c3 - main - cam: report sct/sc in that order

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sat, 02 Nov 2024 18:39:11 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=5e5e4e1cf0c3e46cbb120203d0f42415cd72cb6b

commit 5e5e4e1cf0c3e46cbb120203d0f42415cd72cb6b
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-11-02 18:28:54 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-11-02 18:28:54 +0000

    cam: report sct/sc in that order
    
    This should have no effect on scripting, but when reading it, sct/sc is
    the natural order of things (and the order we print them in
    elsewhere). Report them in that order.
    
    Sponsored by:           Netflix
---
 sys/cam/cam_periph.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index 4052ec2e1570..98236e3f5f5c 100644
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -2166,9 +2166,9 @@ cam_periph_devctl_notify(union ccb *ccb)
 	{
 		struct ccb_nvmeio *n = &ccb->nvmeio;
 
-		sbuf_printf(&sb, "sc=\"%02x\" sct=\"%02x\" cdw0=\"%08x\" ",
-		    NVME_STATUS_GET_SC(n->cpl.status),
-		    NVME_STATUS_GET_SCT(n->cpl.status), n->cpl.cdw0);
+		sbuf_printf(&sb, "sct=\"%02x\" sc=\"%02x\" cdw0=\"%08x\" ",
+		    NVME_STATUS_GET_SCT(n->cpl.status),
+		    NVME_STATUS_GET_SC(n->cpl.status), n->cpl.cdw0);
 		type = "error";
 		break;
 	}