From nobody Sat Oct 08 03:45:03 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 4MkrfR6V2Hz4fb72; Sat, 8 Oct 2022 03:45:03 +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 4MkrfR5hf7z43QZ; Sat, 8 Oct 2022 03:45:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665200703; 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=C3DM7NZNtPdCzk2cWyz0Ob6TlvbtV9AZotIh6BkX1o4=; b=l2q5T3reY0YN9AB925uI/th+bRxmJNDPM0A8V/Nl2ZXTmruW4e2syJ62U6wLGesqTnpgC8 bZZ2Itffp58BspfbG4XcR7qji8JTVr8HrnP5/gqwJdQW2k7+AQjr4JFTxr2AlvE3dw3IQl SQt/U2HbXH8JYNdS/NeyRBtc1u4BUdlkQ2AksScMeSfBYv6sWl24rSo7tvfZb8PQ9Lax9G +9MfyKVHDU2f5A6k4XkBv8UEtXZNpgZWNUvCuUwczlIVun1zTfi/i3nKvDz+mNDVs519qC laCuRceEfwnewPVBwiYdyGPsJcBlU5RZB7ABzKqWQVDM5FDSGUxaAmzzJMrbDw== 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 4MkrfR4mSYzpxY; Sat, 8 Oct 2022 03:45:03 +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 2983j3Ne070500; Sat, 8 Oct 2022 03:45:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2983j3lg070499; Sat, 8 Oct 2022 03:45:03 GMT (envelope-from git) Date: Sat, 8 Oct 2022 03:45:03 GMT Message-Id: <202210080345.2983j3lg070499@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: 2da6a6b31d9c - main - nvmecontrol: use uintmax_t for a size 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2da6a6b31d9ce242151bf025a38ddd5c6887f0a3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665200703; 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=C3DM7NZNtPdCzk2cWyz0Ob6TlvbtV9AZotIh6BkX1o4=; b=g5i+s+saV3DLuoxcxA3pqfa51U3nqJ4TSM7hIFmVpc3tvoiA7jZp7H5xGlGQsg+G5Zss1d +BQElC+gbZOzGvVHyMSjUYUNOYbD4usc/kl0yhLCOt5CmFkoKHWNqIjphVVWNGaLH1m2xa NCvRkV8BKtIqgw5m1xkdmKk5He01wgUHFxZsJKtxvkOVM2zPQv8jC0/Bkezu9Pq1TBCHuY WCJxy10TOcQrvql/IQwB+IYO5mUqZXs3uGTX/eGhYxI6sRk08XV6DiymXpXCCPLB3e3/Oy csPtPD7vRrylYP1D1E0MvY1JPes/8LU9RQspn+UnXIsoDRNrPryE93LhjHUR2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665200703; a=rsa-sha256; cv=none; b=ItRhlzFmSr0IlfYQsL02w4b1kT6tThCyn1B8EVihTIo3zvU2RDndrFqCCCuVKaUrKTOnBY qaLBfbhUo+bqva6itRLJYxCPdm8KNDK9cUPGMOBYuIudqDyRD48hdwGuBHgQ9waK6PxTkC V86effzJyVJBZSUc2YOI0QTWXXqlglGSzsq9ydrnnX5jvUkCP5Ui1Q9kbJKk9xZ0b7IipK dRcOF4wTflLP71ylMXDoXhAnkNWDI0gUUpkeSQCIsKq05mvLQsi5BOYl3uusSeHViS3E2Y Kt9C00HwfI2viApKMENFR4ZFcq9uHL5QuiBLx6Bm+6bt02l0KkqjBLUZ93Ngqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=2da6a6b31d9ce242151bf025a38ddd5c6887f0a3 commit 2da6a6b31d9ce242151bf025a38ddd5c6887f0a3 Author: Warner Losh AuthorDate: 2022-10-08 03:41:02 +0000 Commit: Warner Losh CommitDate: 2022-10-08 03:44:23 +0000 nvmecontrol: use uintmax_t for a size Use uintmax_t cast to print the size of the device for the non-humanize case to avoid issues with 32-bit longs. Fixes: 9c1bec9c21a2 Sponsored by: Netflix --- sbin/nvmecontrol/devlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/nvmecontrol/devlist.c b/sbin/nvmecontrol/devlist.c index e9df5faadb12..61e6dd47ef8e 100644 --- a/sbin/nvmecontrol/devlist.c +++ b/sbin/nvmecontrol/devlist.c @@ -143,7 +143,7 @@ devlist(const struct cmd *f, int argc, char *argv[]) printf(" %10s (%s)\n", name, buf); } else { - printf(" %10s (%luMB)\n", name, size / 1024 / 1024); + printf(" %10s (%juMB)\n", name, (uintmax_t)size / 1024 / 1024); } }