]> git.proxmox.com Git - qemu.git/blobdiff - include/qemu-common.h
spapr: Use DeviceClass::fw_name for device tree CPU node
[qemu.git] / include / qemu-common.h
index 6948bb91774a22d93dd59ecab62f061af803b093..50548361d09767155821af256a40c547a0cd31f7 100644 (file)
@@ -191,6 +191,9 @@ int64_t strtosz_suffix(const char *nptr, char **end, const char default_suffix);
 int64_t strtosz_suffix_unit(const char *nptr, char **end,
                             const char default_suffix, int64_t unit);
 
+/* used to print char* safely */
+#define STR_OR_NULL(str) ((str) ? (str) : "null")
+
 /* path.c */
 void init_paths(const char *prefix);
 const char *path(const char *pathname);