]> xenbits.xensource.com Git - libvirt.git/commitdiff
tunable_event: extend debug message and tweak limit for remote message
authorPavel Hrdina <phrdina@redhat.com>
Wed, 24 Sep 2014 07:43:31 +0000 (09:43 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 25 Sep 2014 08:56:04 +0000 (10:56 +0200)
It would be nice to also print a params pointer and number of params in
the debug message and the previous limit for number of params in the rpc
message was too large. The 2048 params will be enough for future events.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
daemon/remote.c
src/remote/remote_protocol.x

index 05905a32442ea1439c7a8f1bae9dbbe7df5af27e..c93c97a3261b2213d7943d17c210d7c53b917fd0 100644 (file)
@@ -986,8 +986,8 @@ remoteRelayDomainEventTunable(virConnectPtr conn,
         !remoteRelayDomainEventCheckACL(callback->client, conn, dom))
         return -1;
 
-    VIR_DEBUG("Relaying domain tunable event %s %d, callback %d",
-              dom->name, dom->id, callback->callbackID);
+    VIR_DEBUG("Relaying domain tunable event %s %d, callback %d, params %p %d",
+              dom->name, dom->id, callback->callbackID, params, nparams);
 
     /* build return data */
     memset(&data, 0, sizeof(data));
index 1a588dc0dfdd4871ca963e302d06a7386b19fa2a..db12cdadd0a9f2771e0a4933928e2c333ff6be2b 100644 (file)
@@ -248,7 +248,7 @@ const REMOTE_NETWORK_DHCP_LEASES_MAX = 65536;
 const REMOTE_CONNECT_GET_ALL_DOMAIN_STATS_MAX = 4096;
 
 /* Upper limit of message size for tunable event. */
-const REMOTE_DOMAIN_EVENT_TUNABLE_MAX = 8388608;
+const REMOTE_DOMAIN_EVENT_TUNABLE_MAX = 2048;
 
 /* UUID.  VIR_UUID_BUFLEN definition comes from libvirt.h */
 typedef opaque remote_uuid[VIR_UUID_BUFLEN];