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
This commit is contained in:
Warner Losh 2024-11-02 12:28:54 -06:00
parent 3514f98940
commit 5e5e4e1cf0

View file

@ -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;
}