Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 May 2017 17:39:28 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Ian Lepore <ian@freebsd.org>
Cc:        Edward Tomasz Napierala <trasz@freebsd.org>, src-committers <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r318017 - head/share/man/man4
Message-ID:  <CANCZdfoP0iSnVMF5avwNa4jQPCtmj1hvM6QyY=azPKxzrZADzQ@mail.gmail.com>
In-Reply-To: <1494372587.59865.9.camel@freebsd.org>
References:  <201705090836.v498a9JJ035778@repo.freebsd.org> <1494372587.59865.9.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
It's the passed in radix. In this case it is 32:
        len = vsnrprintf(dev->si_name, sizeof(dev->si_name), 32, fmt, ap);
so we get things like ttya following tty9.

It should be in printf(9), but isn't.

Warner

On Tue, May 9, 2017 at 5:29 PM, Ian Lepore <ian@freebsd.org> 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?
>
> -- Ian
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoP0iSnVMF5avwNa4jQPCtmj1hvM6QyY=azPKxzrZADzQ>