svn commit: r293039 - in head/sys/dev: sec tsec

Justin Hibbits jhibbits at freebsd.org
Fri Jan 1 18:01:32 UTC 2016


On Jan 1, 2016 11:30, "Conrad Meyer" <cem at freebsd.org> wrote:
>
> On Fri, Jan 1, 2016 at 7:17 AM, Justin Hibbits <jhibbits at freebsd.org>
wrote:
> > Author: jhibbits
> > Date: Fri Jan  1 15:17:24 2016
> > New Revision: 293039
> > URL: https://svnweb.freebsd.org/changeset/base/293039
> >
> > Log:
> >   Fix a couple printf formats.
> >
> > ...
> > @@ -235,7 +236,7 @@ sec_probe(device_t dev)
> >                 sc->sc_version = 3;
> >                 break;
> >         default:
> > -               device_printf(dev, "unknown SEC ID 0x%016llx!\n", id);
> > +               device_printf(dev, "unknown SEC ID 0x%16"PRIx64"!\n",
id);
> >                 return (ENXIO);
> >         }
>
> Hi,
>
> The 0 got dropped, which makes this a slightly different format.  The
> zero is ignored if a precision is given, but the 16 in the format
> string represents a field width.  (Either "%016" or "%.16" should
> print the same as the original, I think.)
>
> Best,
> Conrad

Oops, fixed in r293044.
Thanks!

-Justin


More information about the svn-src-head mailing list