Signed-off-by: Wei Liu <wei.l...@citrix.com>
---
 tools/libxl/libxl_device.c | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c
index 4717027..b922a94 100644
--- a/tools/libxl/libxl_device.c
+++ b/tools/libxl/libxl_device.c
@@ -1167,6 +1167,31 @@ static void device_hotplug(libxl__egc *egc, 
libxl__ao_device *aodev)
     }
 
     LOG(DEBUG, "calling hotplug script: %s %s", args[0], args[1]);
+    LOG(DEBUG, "extra args:");
+    {
+        const char *arg;
+        unsigned int x = 2;
+
+        arg = args[x];
+        while (arg) {
+            LOG(DEBUG, "\t%s", arg);
+            x++;
+            arg = args[x];
+        }
+    }
+    LOG(DEBUG, "env:");
+    {
+        const char *k, *v;
+        unsigned int x = 0;
+
+        k = env[x];
+        while (k) {
+            v = env[x+1];
+            LOG(DEBUG, "\t%s: %s", k, v);
+            x += 2;
+            k = env[x];
+        }
+    }
 
     nullfd = open("/dev/null", O_RDONLY);
     if (nullfd < 0) {
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to