summaryrefslogtreecommitdiff
path: root/src/libvirt-host.c
diff options
context:
space:
mode:
authorLaine Stump <laine@laine.org>2015-05-27 13:44:21 -0400
committerLaine Stump <laine@laine.org>2015-05-28 13:13:45 -0400
commite983e62514b18e9ae60acbaf9aa4e3b366fc7e10 (patch)
treeb97ba6ccbaf36f8d4191a6910c88c02eec9b274f /src/libvirt-host.c
parent06a18bc84b8f64683e2e2a24dca8dca1a5cbb7fa (diff)
downloadlibvirt-e983e62514b18e9ae60acbaf9aa4e3b366fc7e10.tar.gz
debug: assure NULLSTR() around all %s args in debug at top of public APIs
There are also a couple that were very uninformatively just logging the value of the pointer rather than the string itself: * the "name" arg to virNodeDeviceLookupByName() * wwnn and wwpn args to virNodeDeviceLookupSCSIHostByWWN() All char*'s that make sense should now have their contents logged rather than the pointer, and all %s args should now be inside NULLSTR().
Diffstat (limited to 'src/libvirt-host.c')
-rw-r--r--src/libvirt-host.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libvirt-host.c b/src/libvirt-host.c
index 03bee1f5df..9c88426ec4 100644
--- a/src/libvirt-host.c
+++ b/src/libvirt-host.c
@@ -321,7 +321,7 @@ int
virConnectGetMaxVcpus(virConnectPtr conn,
const char *type)
{
- VIR_DEBUG("conn=%p, type=%s", conn, type);
+ VIR_DEBUG("conn=%p, type=%s", conn, NULLSTR(type));
virResetLastError();
@@ -965,7 +965,7 @@ virConnectCompareCPU(virConnectPtr conn,
const char *xmlDesc,
unsigned int flags)
{
- VIR_DEBUG("conn=%p, xmlDesc=%s, flags=%x", conn, xmlDesc, flags);
+ VIR_DEBUG("conn=%p, xmlDesc=%s, flags=%x", conn, NULLSTR(xmlDesc), flags);
virResetLastError();
@@ -1009,7 +1009,7 @@ virConnectGetCPUModelNames(virConnectPtr conn, const char *arch, char ***models,
unsigned int flags)
{
VIR_DEBUG("conn=%p, arch=%s, models=%p, flags=%x",
- conn, arch, models, flags);
+ conn, NULLSTR(arch), models, flags);
virResetLastError();
if (models)