From nobody Sun Sep 22 13:28:18 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 4XBRlQ6lZLz5XDj0; Sun, 22 Sep 2024 13:28:18 +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 4XBRlQ5ZGvz4LJ4; Sun, 22 Sep 2024 13:28:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727011698; 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=2dqvYYpnteDE1/KaW+G8AVnlJrIn7F/3oLUBy0/nf/4=; b=O1l4/TJJvp9UzrUNhoVlyRYWqO3TWtFWDHLxEfK30AHi5Ym99FSBeC8Jq+U05RMxwENr58 wdKSwEQDaxYjiNnBuxWcruli4b6rsdwN8gaPZBqBYS5hScCQ0Avo/DP2qf9TcViIb85ZVA SLCkQzKH4hhEOtj02vzicmcZV6g2v5OU81iWr0vIB9FMbdQfSm2G4YdrMoMLoWAWKaAGm0 zfbB7DpTmlj5sA9y9Ela2SaI7NEQd3Bz1+FIqm546yFIL07jLbcEXravVBI/LqyLWUtje9 rXdW6MOe4n1NVr1Leon59bpRtGcX5FNWX1nNsBEUc84IJLEiYgpXhuiX3uFaEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727011698; a=rsa-sha256; cv=none; b=D+0ksCgsUOSJit/ohTcKmHB6t/vBejENc0pIIfLtPcOTAk8P7yb/G5Z1bi786MODwdWAqJ wtUQDLr89YRXjE/ORUePF3yvAfmsTbR59otpgnIRkV9u4gxWRDHbnuY/p96x8XS0ta46gu H0een/eWa/dS5yXsVQ97eMjJ6NIsnodSAE+6VmJPuGh+zIs7tUZ5ydlCJf7Jn7s0G+Gug4 HcSGiaCmPI6HVdk3GprdQokCGK2xUaoSnyWGiavZEXZAtTs4NuPtib89GujN/qib5Q/NUi dUgcE41kZ3/UZ5ca/5+LcOoMOnGGcKyLoXLJpm2IvLhPVMivrTqzLDUI3BRmHw== 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=1727011698; 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=2dqvYYpnteDE1/KaW+G8AVnlJrIn7F/3oLUBy0/nf/4=; b=fUbjrbHqvig5Yy7J7erSvnbfzT5iG5toGVbxxLFgKGi2I1hmiu2U7h4mX8Gd3tpvM6SuDK HiqT8EJwbK6KvvIovi/9BZB9Mdmv0HpL8zOO2f44NG9KjqEe+NBXzp8JehJ67Q7wFBA12x tN3V8mQJV0aYsvUm9IWvdqxs6FcZmzRvzAqxfjGomewtFOh4At/WPnK8uZrF1Aly1eUps2 Ppha7et6FmRklJguwa8KF4XggSNmRMILPa9O9QvYp/ilF1eH3CQKyhJ90wgI1oFkPxQZ8g L66gNty8g+WwHPb5JUsvcTZWWuK+3H4KQl3Wa2CBcgUFlgDPnHMGAHmBD6NNeA== 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 4XBRlQ59kVz1HnJ; Sun, 22 Sep 2024 13:28:18 +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 48MDSIgu093786; Sun, 22 Sep 2024 13:28:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48MDSITV093783; Sun, 22 Sep 2024 13:28:18 GMT (envelope-from git) Date: Sun, 22 Sep 2024 13:28:18 GMT Message-Id: <202409221328.48MDSITV093783@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: 00b0498051de - main - Fix xo_emit format string for percentages 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 00b0498051de59c9014fe2cf239b28c3e4bd469c Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=00b0498051de59c9014fe2cf239b28c3e4bd469c commit 00b0498051de59c9014fe2cf239b28c3e4bd469c Author: John F. Carr AuthorDate: 2024-04-22 19:13:44 +0000 Commit: Warner Losh CommitDate: 2024-09-22 13:26:46 +0000 Fix xo_emit format string for percentages The "%lld" format string was used with a value of type long. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278532. Reviewed by: imp, mmel Pull Request: https://github.com/freebsd/freebsd-src/pull/1344 --- usr.bin/vmstat/vmstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index e7790ad6e2f6..1d0eb4c9283f 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -1105,7 +1105,7 @@ percent(const char *name, long pctv, int *over) { char fmt[64]; - snprintf(fmt, sizeof(fmt), " {:%s/%%%ulld/%%lld}", name, + snprintf(fmt, sizeof(fmt), " {:%s/%%%uld/%%ld}", name, (*over && pctv <= 9) ? 1 : 2); xo_emit(fmt, pctv); if (*over && pctv <= 9)