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

Conrad Meyer cem at FreeBSD.org
Fri Jan 1 17:30:23 UTC 2016


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


More information about the svn-src-all mailing list