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

[Xen-devel] [PATCH] libxl: log device model arguments to aid debugging



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1332167041 0
# Node ID e10c4b937e8fa9159070584113e9378ca175f728
# Parent  5988e9761e13adb6d7baa38e192bdccf467fb94a
libxl: log device model arguments to aid debugging

At the moment the only easy way to get at these is to strace xl.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r 5988e9761e13 -r e10c4b937e8f tools/libxl/libxl_dm.c
--- a/tools/libxl/libxl_dm.c    Mon Mar 19 12:32:38 2012 +0000
+++ b/tools/libxl/libxl_dm.c    Mon Mar 19 14:24:01 2012 +0000
@@ -895,7 +895,7 @@ int libxl__create_device_model(libxl__gc
     char *path, *logfile;
     int logfile_w, null;
     int rc;
-    char **args;
+    char **args, **arg;
     libxl__spawner_starting buf_starting, *p;
     xs_transaction_t t;
     char *vm_path;
@@ -987,6 +987,10 @@ retry_transaction:
         }
     }
 
+    LIBXL__LOG(CTX, XTL_DEBUG, "Spawning device-model %s with arguments:", dm);
+    for (arg = args; *arg; arg++)
+        LIBXL__LOG(CTX, XTL_DEBUG, "  %s", *arg);
+
     rc = libxl__spawn_spawn(gc, p->for_spawn, "device model",
                             libxl_spawner_record_pid, p);
     if (rc < 0)

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.