From 5e5e4e1cf0c3e46cbb120203d0f42415cd72cb6b Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 2 Nov 2024 12:28:54 -0600 Subject: [PATCH] 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 4052ec2e157..98236e3f5f5 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; }