Re: %j for printf(9)
Dag-Erling Smorgrav <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.audit |
|---|---|
| Message-ID | <[email protected]> |
Dima Dorfman <[email protected]> writes: > I would also like to solicit comments on what to do with %z; C99 says > this is the length modifier for size_t, but the kernel treats it as > signed hex. This patch implements the C99 length modifier as %Z, but > that probably shouldn't stay. IIRC, I couldn't find any place in the > kernel that we actually use %z; can it perhaps be removed? des@des ~% egrep -r '%[^\" dious]+z' /sec/freebsd/current/src/sys /sec/freebsd/current/src/sys/ddb/db_examine.c: db_printf("%-*lz", width, (long)value); /sec/freebsd/current/src/sys/ddb/db_examine.c: db_printf("%8lz", (long)addr); DES -- Dag-Erling Smorgrav - [email protected] To Unsubscribe: send mail to [email protected] with "unsubscribe freebsd-audit" in the body of the message