From nobody Thu Oct 06 18:58:30 2022 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 4Mk11L2yZHz4fFL0; Thu, 6 Oct 2022 18:58:30 +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 4Mk11L2W91z3hL1; Thu, 6 Oct 2022 18:58:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665082710; 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=T15D7CZdPFpjH5UbynEFuNMvJwNlRsh0+2n9RLKBKdI=; b=LvBqDCDbcId+JDO6Ak00YCI4KZDIAgqUuCSWBxiziAATKSPhM931Dm+plI+Ft4QxjxnS9o JEyPD588l0ZOO02JkP+m20BvU/CfRrVTN8aKd3zmeBysZ+YMv2AcwYTm513mSag18ADCBq 322zYjdy61FpXG3cOnamtCOgR+6p8h/J1HQt0XkbZG8Er5jndCPXWwZ1J+W6qXWtraDpXE lgIc9kXG5L/2VyhElunn/kmo6stMdkuoBJhvAKvOJ07TNm80gGNNmHFL01CCW8GN3cJ/Br igh8vl28ZgCmC1Jwx/y9sgZgmsVrekOAbpZouVQFoYXn2sGNJ/EmIWXlpUJRMg== 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 4Mk11L1ZxtzLMh; Thu, 6 Oct 2022 18:58:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 296IwUAC018524; Thu, 6 Oct 2022 18:58:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 296IwUX2018523; Thu, 6 Oct 2022 18:58:30 GMT (envelope-from git) Date: Thu, 6 Oct 2022 18:58:30 GMT Message-Id: <202210061858.296IwUX2018523@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: 142c3c7fefed - main - nvmecontrol: Apply cast 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 142c3c7fefed51c0766c24e776a773fec7557050 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665082710; 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=T15D7CZdPFpjH5UbynEFuNMvJwNlRsh0+2n9RLKBKdI=; b=ph/2a+ou3xwZR581tE8jNF/ujYXKJZocKSwaHibsNeFFxjhoMOC8y9HV0kQxYNUSNDU4CX CuB6epXHW+X+8jcE1QnQgvpL2QGf274ViVGOU7P+rdTAe8Kyqphdci/Hw5I0X9vqWEBlzm 2mS1S7a45Wnd4SpvGv7DioY9XhBUnKBK36AHMRcDVIAfTlsT4e7whjGjq4sQdXbdoV4iU7 Ws6j2UIaxzWLOmEbg6mDwV1GKYU1tmDxTSzORLADlW2ywtslu5viRsRoopiyxh/+BuFcLk yuyo2Sb3MAWZlJsN3DcdZgLM/MTz6il5oqs1Jk93gxZ71BHiaDezAu29VEi20A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665082710; a=rsa-sha256; cv=none; b=B7ih4Cd2BUehvLVwbTO2t6HUHhwPBB/NdR23tNLTERsZqgtxi6Rulj0olGJTS5g8/05zdK wuhDR8AQyVf08aYFnpoEy4emL8jWnsDsLxa79+trNI02gwuHiHowK2bwiCLHIJmlagKifU 9OKKuJjOiJF6O4aiShZ/z4npO7ymJ67SemEC4zUKvXtLS9GtKXyLFquTHwju6k6kjp6Exi oGPLo0lW9SKKkkLmP3J0Zx/Y0w9xfnEcmekS0gfIsuINwfdLvr69wQHDKTa1c7tICmblJO GZ3Pa/2Je7cd7/ou2hSw1UstNhJnS8O2Vnq0X3VnA3ErpwuH7xwbHqvBSk58Pw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=142c3c7fefed51c0766c24e776a773fec7557050 commit 142c3c7fefed51c0766c24e776a773fec7557050 Author: Cy Schubert AuthorDate: 2022-10-06 18:56:11 +0000 Commit: Cy Schubert CommitDate: 2022-10-06 18:58:16 +0000 nvmecontrol: Apply cast The proper fix also casts to uintmax_t. Reported by: imp Fixes: a7b568109ec7 --- sbin/nvmecontrol/modules/samsung/samsung.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/nvmecontrol/modules/samsung/samsung.c b/sbin/nvmecontrol/modules/samsung/samsung.c index 75d8e1064c93..497acf46e01c 100644 --- a/sbin/nvmecontrol/modules/samsung/samsung.c +++ b/sbin/nvmecontrol/modules/samsung/samsung.c @@ -146,8 +146,8 @@ print_samsung_extended_smart(const struct nvme_controller_data *cdata __unused, print_temp(le16dec(&temp->ct)); printf(" Capacitor Health : %u\n", le16dec(&temp->ch)); printf(" Reserved Erase Block Count : %u\n", le32dec(&temp->luurb)); - printf(" Read Reclaim Count : %ju\n", le64dec(&temp->rrc)); - printf(" Lifetime Uncorrectable ECC Count : %ju\n", le64dec(&temp->lueccc)); + printf(" Read Reclaim Count : %ju\n", (uintmax_t) le64dec(&temp->rrc)); + printf(" Lifetime Uncorrectable ECC Count : %ju\n", (uintmax_t) le64dec(&temp->lueccc)); printf(" Reallocated Block Count : %u\n", le32dec(&temp->lurb)); printf(" Power on Hours : %s\n", uint128_to_str(to128(temp->poh), cbuf, sizeof(cbuf)));