From nobody Wed Apr 17 03:33:46 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VK62M21zmz5Hjdm; Wed, 17 Apr 2024 03:33:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VK62L4cmLz4Qgk; Wed, 17 Apr 2024 03:33:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713324826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0q/GjtleXKM5aMCo9reW5Nb+WKWJ0mUk2dI/61QNawU=; b=JZoSOfFuMTTMo11NBvOOmH0sDiHbTZ1pErH/biXsVeBImhRfL36RBFMvha+ircbcCidRpD 7/0jaiQ+5Xy/hGdA7DBsQxTqtrKwONQ7cDDqF4UrD2ILcmner8hT2YOjw/vf1t5XiyE0pF DlpDw5VhQPHRIS9nXKzOGPitMm9MmnT683dWhOQ37HGiMjad9X+TlG/cOZecfV5LeE55H9 24gLnZ7tTnNXrvJ98HW9tpuovhDm7kPyM6ZImyk/qh3pVhs2DmlZdOTteYiYxEAwjMAml2 mY+pDyx7lx/hjfmKfcdR3KCT4iFNc4j/pqidB1we8T/rzoMaCfvQoTnMPuWKDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713324826; a=rsa-sha256; cv=none; b=uRMfiTX1WSbUjkRaoFnvxJM4b0lVma8PEpIda2ntnHrBc+sqVKSYROdCxgFWuKXNq+5ewC QSZlj8YkG/3ItcgZ8hHmKN38WsFfsyHqafIP0TJbNeZDm/gUjcXeg4QGl7MGR/Y4abUVVI tKju6ZUX6nJMET9TUOaZ9iKjv41bTcilC23CWDFC/AEHm3eszMJOis/0k8h9Z3v/lhHex/ hXMBpA8nhvhUvRiN/hJaLyIaQ55VlqBuOI0VWUQfmhOKBj0MP6kmCfnVV2yS5GV4gXNmpp Ip+OQrusdw0px9VZUwqrvIeW45fgaZHnsR+bKejomdmEsGcXtC/6DS9lc5eiaQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713324826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0q/GjtleXKM5aMCo9reW5Nb+WKWJ0mUk2dI/61QNawU=; b=e+8BOfhHoSGk1ZV6V1VaPY2CwB8IpNjMtoUv41oYvjFnX9lk3m9tceepLYbRnoJocSjlDP XVDBS2onI7NDkoM6ZmSR5nqbF47N+RddH9BzaOBXWp9UcXgwIGXlN+cr2aNEmByamT90v2 qmNfDN0XwcahdtRuims9001JKHCGR/ksMYztpwYOsL2aON5BMimZU/V4H6884jduPms767 nhLTfuj4LB1GtiYgGFeAnXLX6neAWapjh2SFFbP13xsBgpcpk0CjSepMLejTi/svWsKjg2 OHf7rEB6cfCk/1r66peSXic2zGAHKDI+IHT1QTqjywFUDPMA+cKuq1iOhcqOkg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VK62L4F5cz19Hl; Wed, 17 Apr 2024 03:33:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43H3XkY8086873; Wed, 17 Apr 2024 03:33:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43H3XkhT086870; Wed, 17 Apr 2024 03:33:46 GMT (envelope-from git) Date: Wed, 17 Apr 2024 03:33:46 GMT Message-Id: <202404170333.43H3XkhT086870@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: acdf72f7bbe5 - main - nvmecontrol: Move namespace change page printing to little endian orderinng List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: acdf72f7bbe582b8eabf09576dc93eb4fcfbd19b Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=acdf72f7bbe582b8eabf09576dc93eb4fcfbd19b commit acdf72f7bbe582b8eabf09576dc93eb4fcfbd19b Author: Warner Losh AuthorDate: 2024-04-16 22:36:13 +0000 Commit: Warner Losh CommitDate: 2024-04-17 03:30:18 +0000 nvmecontrol: Move namespace change page printing to little endian orderinng Sponsored by: Netflix Reviewed by: chuck Differential Revision: https://reviews.freebsd.org/D44653 --- sbin/nvmecontrol/logpage.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sbin/nvmecontrol/logpage.c b/sbin/nvmecontrol/logpage.c index 0ae2c52155b4..0cf6e5f9fa94 100644 --- a/sbin/nvmecontrol/logpage.c +++ b/sbin/nvmecontrol/logpage.c @@ -219,9 +219,6 @@ read_logpage(int fd, uint8_t log_page, uint32_t nsid, uint8_t lsp, /* 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 @@ print_log_ns(const struct nvme_controller_data *cdata __unused, void *buf, 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])); } }