[PATCH] storage: make debug log more useful

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"__func__" should be replaced with "__FUNCTION__" instead for
better portability, however, VIR_DEBUG already prints the function
name, so it's useless, replace it with more useful log.

* src/storage/storage_backend_mpath.c
---
 src/storage/storage_backend_mpath.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/storage/storage_backend_mpath.c b/src/storage/storage_backend_mpath.c
index 2e85561..2d48a9d 100644
--- a/src/storage/storage_backend_mpath.c
+++ b/src/storage/storage_backend_mpath.c
@@ -316,7 +316,7 @@ virStorageBackendMpathRefreshPool(virConnectPtr conn ATTRIBUTE_UNUSED,
 {
     int retval = 0;

-    VIR_DEBUG("in %s", __func__);
+    VIR_DEBUG("conn=%p, pool=%p", conn, pool);

     pool->def->allocation = pool->def->capacity = pool->def->available = 0;

--
1.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]