From nobody Tue Apr 25 20:28:15 2023 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 4Q5YV819zQz46gXp; Tue, 25 Apr 2023 20:28:16 +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 4Q5YV76kHwz3GNj; Tue, 25 Apr 2023 20:28:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682454495; 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=HJHttgHfzKEogR8H/DFF3inZphjiVDRGDj1KYiJS9rg=; b=T3bsVnPbrTuVptAU8ckFewDBlqAQGDS8oLOufe+zoaVOy1bj4OD8zMZwxlAhvCUW9Q5mk7 0h+fxBzYSB4kb4xRB4Ld1IwADQY4ccgvV9P8G9sOHfcA/6Zl4MH4Xk9Jlip/JJQ48pbbEu 4c3vm600vK3pCUzQNl/0+UckzFjSb7YxPneyF3iiBVr5hdbBrY1GoSnfnDBTLuLD5cPbtj Yh+poa7U0QzOXfRM+eeLQbj6YGSp0zgTCbm7/vLnu7pQQ9c1z76PzqLFoXcnZXtbs5g2dZ n4f+Ou92CuP1h4Dh1VkvAY4RNRW4sgXnaOgCyJV2fJb2iDfTAwo1HlsBrODE6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682454495; 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=HJHttgHfzKEogR8H/DFF3inZphjiVDRGDj1KYiJS9rg=; b=mN0+zO534Dyat1eiIjxpX7Z5oNeVk1pk62Un3WSOEiq3xnHO7C9AJEOKVZxouzeH8i290+ tfjCyMn0ukA5tu2pBS4l0DIdgNCvJEQqDWA7m7dxbn94Q+JVKR7BOUpOkk5faJmfdJqtAE QuL59WPgxIWuFCuwYoJZGzEyUg4meryHj4ZLvRLpYEYwhaNd21R0ctl0wo0tNi/BXGrrBU IuUJe/4aRL8FHE9L1tex817TeFUSgjtQpf5opKre5WGsIA9VAVnEvp9u89JMB3OS78xVAc QylRz8o3fKVaapKdylXptnhDZYtL4vVvP0bebbBgVQtPzCC8jeuY88Wbt2loLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682454495; a=rsa-sha256; cv=none; b=lRcbvDnmsV+K18xUomDqF/iLlFzE6L8o3xapfzUVG/DlsjSJI2PMQzInobiXxvyjqX0l0o UZn9T7DYPPk50Z1Me8YOJJCDeHdAufMCkDWg+yREqFCBTQbvIW3UB3gDdtgiRLqxH4tV9Y KxCRPUT5jmsHBEXEB6ywQWhJ3C2iopl834xAW5wHiJaDHfKix4OvlV7Qdv4oqGuIhIY12p BOErthNOwJY9zDJOY/xdrgGCemw3C69NwEivkXq03rKnxyvboKgTJZsHdeRDLJ7Jfs51/1 3INmXx58gOgKbK5XkbjSVnTzTOJBa42UtbRtee/4HhhQRcYVZfg0QuICqbHyyA== 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 4Q5YV75qKjz1M1R; Tue, 25 Apr 2023 20:28:15 +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 33PKSFeH026261; Tue, 25 Apr 2023 20:28:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33PKSF4w026260; Tue, 25 Apr 2023 20:28:15 GMT (envelope-from git) Date: Tue, 25 Apr 2023 20:28:15 GMT Message-Id: <202304252028.33PKSF4w026260@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 82bc33d5ad2e - main - printf(9): clarify the description of %b 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: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 82bc33d5ad2e00179ea7026c496a35b00550da15 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=82bc33d5ad2e00179ea7026c496a35b00550da15 commit 82bc33d5ad2e00179ea7026c496a35b00550da15 Author: Mitchell Horne AuthorDate: 2023-04-25 20:26:36 +0000 Commit: Mitchell Horne CommitDate: 2023-04-25 20:26:36 +0000 printf(9): clarify the description of %b The bit values are numbers given in octal representation, not decimal, as one might assume from the description. Same goes for the base, although this has an example. Reviewed by: emaste MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39815 --- share/man/man9/printf.9 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/share/man/man9/printf.9 b/share/man/man9/printf.9 index 33347fb135ca..631701e455cf 100644 --- a/share/man/man9/printf.9 +++ b/share/man/man9/printf.9 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 14, 2023 +.Dd April 25, 2023 .Dt PRINTF 9 .Os .Sh NAME @@ -94,11 +94,13 @@ and a These are used as a register value and a print mask for decoding bitmasks. The print mask is made up of two parts: the base and the arguments. -The base value is the output base expressed as an integer value; +The base value is the output base (radix) expressed as an octal value; for example, \e10 gives octal and \e20 gives hexadecimal. The arguments are made up of a sequence of bit identifiers. -Each bit identifier begins with an integer value which is the number of the -bit (starting from 1) this identifier describes. +Each bit identifier begins with an +.Em octal +value which is the number of the bit (starting from 1) this identifier +describes. The rest of the identifier is a string of characters containing the name of the bit. The string is terminated by either the bit number at the start of the next