Date: Sun, 27 Nov 2011 15:29:18 +1100 (EST) From: Bruce Evans <brde@optusnet.com.au> To: Pawel Jakub Dawidek <pjd@FreeBSD.org> Cc: Mikolaj Golub <trociny@FreeBSD.org>, mdf@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, svn-src-head@FreeBSD.org Subject: Re: svn commit: r227873 - head/usr.bin/procstat Message-ID: <20111127152712.X1152@besplex.bde.org> In-Reply-To: <20111126171140.GF8794@garage.freebsd.pl> References: <201111230734.pAN7YA78032998@svn.freebsd.org> <CAMBSHm9=kToWP8kmc5YqfMeAC%2BeX_677MPsVK5cqrNaHekSctA@mail.gmail.com> <20111126171140.GF8794@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 26 Nov 2011, Pawel Jakub Dawidek wrote: > On Wed, Nov 23, 2011 at 11:10:47AM -0800, mdf@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111127152712.X1152>