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

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to