Date: Tue, 1 Dec 2015 20:18:30 -0800 From: Craig Rodrigues <rodrigc@FreeBSD.org> To: Bryan Drewery <bdrewery@freebsd.org> Cc: "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r291637 - head/cddl/contrib/opensolaris/cmd/plockstat Message-ID: <CAG=rPVfgid=htd0s-THye4TssVg9GJ7T=BXnbfRB6T2u3eOUcQ@mail.gmail.com> In-Reply-To: <201512020211.tB22BcUB082864@repo.freebsd.org> References: <201512020211.tB22BcUB082864@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 1, 2015 at 6:11 PM, Bryan Drewery <bdrewery@freebsd.org> wrote: > - (void) snprintf(buf, size, "%#lx", addr); > + (void) snprintf(buf, size, "%#lx", (unsigned long)addr); > return (0); > In the past when I've hit these types of problems, I have found that using %#jx and casting to (uintmax_t) instead seemed to work consistently across different platforms, so you might want to do that here. There are lots of examples in the tree of this pattern. -- Craig
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVfgid=htd0s-THye4TssVg9GJ7T=BXnbfRB6T2u3eOUcQ>