[PATCH] Remove extra 0x in the %p formatting string

Andrew Bartlett abartlet at samba.org
Wed May 16 19:42:18 UTC 2018

On Wed, 2018-05-16 at 18:18 +0200, Franz Sirl via samba-technical
> Note that %p is not portable, for example Solaris 10/11 don't prefix 0x 
> to the value. And glibc prints "(nil)" for a NULL-pointer.

A patch to lib/replace/tests/snprintf.c would be a good idea then.  We
can then replace printf on these platforms. 

Andrew Bartlett
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba

More information about the samba-technical mailing list