From owner-svn-src-head@freebsd.org Wed May 10 08:46:16 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1F98D66F3B; Wed, 10 May 2017 08:46:16 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6B32FB86; Wed, 10 May 2017 08:46:16 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [192.168.3.3] (unknown [77.95.97.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 00DBF240CB; Wed, 10 May 2017 10:46:13 +0200 (CEST) From: Dimitry Andric Message-Id: <1D188CE2-2860-4204-BD34-F5C4DD6BAFEA@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_9BDC38ED-CC7A-48B6-ADC9-79495770E915"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: svn commit: r318017 - head/share/man/man4 Date: Wed, 10 May 2017 10:46:12 +0200 In-Reply-To: <20170510095816.X5705@besplex.bde.org> Cc: Ian Lepore , Edward Tomasz Napierala , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org To: Bruce Evans References: <201705090836.v498a9JJ035778@repo.freebsd.org> <1494372587.59865.9.camel@freebsd.org> <20170510095816.X5705@besplex.bde.org> X-Mailer: Apple Mail (2.3273) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 08:46:16 -0000 --Apple-Mail=_9BDC38ED-CC7A-48B6-ADC9-79495770E915 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 10 May 2017, at 02:47, Bruce Evans wrote: > > On Tue, 9 May 2017, Ian Lepore wrote: > >> On Tue, 2017-05-09 at 08:36 +0000, Edward Tomasz Napierala wrote: >>> Author: trasz >>> Date: Tue May 9 08:36:09 2017 >>> New Revision: 318017 >>> URL: https://svnweb.freebsd.org/changeset/base/318017 >>> >>> Log: >>> Fix device paths for USB serial adapters: the formatting strings >>> contain "%u", differently from eg uart(4) which uses "%r". >>> >> >> What is %r and where is it documented? > > In the source code. > > It was a ddb internal (but supported by -fformat-extensions, except IIRC > for %jr (1)), but is now used by makedev(). In clang, it is supported with __attribute__((__freebsd_kprintf__)) (since r280031). The format checker assumes the argument is a plain int, just like our patched gcc does. -Dimitry --Apple-Mail=_9BDC38ED-CC7A-48B6-ADC9-79495770E915 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlkS01QACgkQsF6jCi4glqPiowCcCmfJ8wkuiktcFxGngM1Akuq1 7ycAn1OSrLoH/u8QHOzXRp2oSiZpT/aa =+jGj -----END PGP SIGNATURE----- --Apple-Mail=_9BDC38ED-CC7A-48B6-ADC9-79495770E915--