From nobody Tue Aug 27 01:06:41 2024 X-Original-To: dev-commits-src-all@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 4Wt8Wk07dTz5TjLl; Tue, 27 Aug 2024 01:06:42 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wt8Wj4pjvz4lxG; Tue, 27 Aug 2024 01:06:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724720801; 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=raq+C25BAIgh528AmjDfXubl3zeoE5nJCub2ILqtZKA=; b=DlC9yh+qY1gBwvDW5SjUNzFJv12nNjie1ODXRSz9uYDK1I18I6FxIIIreajhYrsHga6sc3 aAgbDFFbkWKs59tUH0/fIxzAoM9QoK6I/zsn/EPM27K1kKduuStNP4XkBtEitv4eLD9Uw9 St5lQo5mW2TvsgT/mRj46xoNifNxIdFneeJbhvHKjUfR6Gm0J84KTUwXRXEzwU5bEDeyJN 9UaoxEKMz8C3LvkDf1Vf9UcPqGt2EDul8LZZEurvHEssBUzOL2gtgl6HUXmEztjWVvXRA8 zixwQdf5wpljZNNO0oCRMmCtYUr5DZ0u5Ah3BDitvw9tKZwtKkjki/DQQ5xxjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724720801; a=rsa-sha256; cv=none; b=ljzr6mQZ++gZkEoh9+tSiV/gaiBCXhjW1fWkOyCFgy0r0h4wwHs9IulH3IjqK3v5Bgaxf4 jeXA0g7HUPQzAsF+DZhtde4Rtr57A/oWbt9Qb+Lobr8xHWH6K3F0dImhrODP5nRXonc6oe qX00he9SFCNDU28Lm7tpRdBtTugrY2bpS/YZct9KLIMiyB+RGpwwGHtg4sG4fZsZSyEFjH nFv0RVXCYih6/oI+Mw/YQhPsdgJcK8qJIRMD6Xm9AytibcPYrZZxvTj44e4lrhATcr1hwv /LtCaz18zgLwPr/1z+en07uHZkQbfrXHjdo/Efmtz7PfvcaE+41/hHQw+w/usQ== 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=1724720801; 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=raq+C25BAIgh528AmjDfXubl3zeoE5nJCub2ILqtZKA=; b=O646Wjc+eINE9ehKpsdBworJ3C+dDTe407J8Ih90+kF6iMkjY+cT5VMRNf7VE7XIttgs6Q cODxdAskGvKY20QAXHXpI7qRWfWFHiAykiSM8gOyaMsVZisdYTieg4HwPJyKqHgIr8KtLd fcJIoGm3I+GvZaChnD1/oKIM3XhR01ScXtXYSaLAm0svKY4h/iLF+OUctowsdRkzHVZDVD WibEW+O5FmqBm4lxAvNdKjnl6ya3zv1LMz5GL657V8IkG3rlVtribG/5u1SC/c+dLf8KZe LQKILDUZKXO3wCKfSCQD7jFu0SQRl4aPJcBs2CchchdA5K1olUCNCpmjwhzinQ== 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 4Wt8Wj49TbzTf5; Tue, 27 Aug 2024 01:06:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47R16f9t057205; Tue, 27 Aug 2024 01:06:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47R16fFp057202; Tue, 27 Aug 2024 01:06:41 GMT (envelope-from git) Date: Tue, 27 Aug 2024 01:06:41 GMT Message-Id: <202408270106.47R16fFp057202@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 0c66083c035c - stable/14 - nvmecontrol: Move namespace change page printing to little endian orderinng List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 0c66083c035c90e6991e18914b1fcdbdc70d8e7d Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=0c66083c035c90e6991e18914b1fcdbdc70d8e7d commit 0c66083c035c90e6991e18914b1fcdbdc70d8e7d Author: Warner Losh AuthorDate: 2024-04-16 22:36:13 +0000 Commit: John Baldwin CommitDate: 2024-08-26 18:31:02 +0000 nvmecontrol: Move namespace change page printing to little endian orderinng Sponsored by: Netflix Reviewed by: chuck Differential Revision: https://reviews.freebsd.org/D44653 (cherry picked from commit acdf72f7bbe582b8eabf09576dc93eb4fcfbd19b) --- 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 0ed19222ba1a..845dad0cd539 100644 --- a/sbin/nvmecontrol/logpage.c +++ b/sbin/nvmecontrol/logpage.c @@ -220,9 +220,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); @@ -430,8 +427,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])); } }