On Sat, 26 Nov 2011, Pawel Jakub Dawidek wrote:

On Wed, Nov 23, 2011 at 11:10:47AM -0800, m...@freebsd.org wrote:
I don't know if there's a style preference for 0x%lx versus %#lx,
though, or a preference for a different type for the print (uintmax_t,
for example).  There is probably a preference for using u_long rather
than unsigned long, since it's shorter.

u_long is preferred in kernel, in userland unsigned long is better.

u_long is preferred in FreeBSD code in both, but portable code cannot
use it.  Portable code is very rare.

Bruce
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to