svn commit: r227873 - head/usr.bin/procstat

Bruce Evans brde at optusnet.com.au
Sun Nov 27 04:29:22 UTC 2011


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

> On Wed, Nov 23, 2011 at 11:10:47AM -0800, mdf at 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


More information about the svn-src-head mailing list