]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
maint: Change the text of the NULLSTR() macro to "<null>"
authorPeter Krempa <pkrempa@redhat.com>
Wed, 5 Feb 2014 17:39:23 +0000 (18:39 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 6 Feb 2014 09:43:57 +0000 (10:43 +0100)
Eric Blake suggested to change this message to be different from the
glibc's NULL deref protection message in printf to be able to
differentiate errors.

src/internal.h

index 4ba0e4194e89e3ee3565e82f01c755cced3b213b..cef3da03282ac3a9c42d5ba06283d40ffeb7704a 100644 (file)
 /*
  * Use this when passing possibly-NULL strings to printf-a-likes.
  */
-# define NULLSTR(s) ((s) ? (s) : "(null)")
+# define NULLSTR(s) ((s) ? (s) : "<null>")
 
 /**
  * TODO: