Date: Wed, 10 May 2017 10:46:12 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Bruce Evans <brde@optusnet.com.au> Cc: Ian Lepore <ian@freebsd.org>, Edward Tomasz Napierala <trasz@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r318017 - head/share/man/man4 Message-ID: <1D188CE2-2860-4204-BD34-F5C4DD6BAFEA@FreeBSD.org> In-Reply-To: <20170510095816.X5705@besplex.bde.org> References: <201705090836.v498a9JJ035778@repo.freebsd.org> <1494372587.59865.9.camel@freebsd.org> <20170510095816.X5705@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <brde@optusnet.com.au> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1D188CE2-2860-4204-BD34-F5C4DD6BAFEA>