Date: Sat, 2 Nov 2024 18:39:11 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 5e5e4e1cf0c3 - main - cam: report sct/sc in that order Message-ID: <202411021839.4A2IdBbP023086@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411021839.4A2IdBbP023086>