svn commit: r318017 - head/share/man/man4

Dimitry Andric dim at FreeBSD.org
Wed May 10 08:46:16 UTC 2017


On 10 May 2017, at 02:47, Bruce Evans <brde at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20170510/065b278e/attachment.sig>


More information about the svn-src-head mailing list