[Spice-devel] [spice-server v2 2/3] reds: Remove redundant __func in debug log

Christophe Fergeau cfergeau at redhat.com
Thu Jun 15 10:05:06 UTC 2017


The function name is always prepended by the spice_log macro, so we
don't need to explicitly add it in debug messages.

Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
 server/reds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/reds.c b/server/reds.c
index ce89e7999..620867424 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1117,7 +1117,7 @@ static void reds_on_main_agent_monitors_config(RedsState *reds,
         return;
     }
     monitors_config = (VDAgentMonitorsConfig *)(cmc->buffer + sizeof(*msg_header));
-    spice_debug("%s: %d", __func__, monitors_config->num_of_monitors);
+    spice_debug("monitors_config->num_of_monitors: %d", monitors_config->num_of_monitors);
     reds_client_monitors_config(reds, monitors_config);
     spice_buffer_free(cmc);
 }
-- 
2.13.0



More information about the Spice-devel mailing list