[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: log device model arguments to aid debugging
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1332167041 0 # Node ID af1096d2fe740cdd4d1743a16786f8722d4da35f # Parent db3ac329f3e792686868493bbc79eb6d506c4f7b 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> Committed-by: Ian Jackson <ian.jackson.citrix.com> --- diff -r db3ac329f3e7 -r af1096d2fe74 tools/libxl/libxl_dm.c --- a/tools/libxl/libxl_dm.c Tue Apr 03 15:25:01 2012 +0100 +++ b/tools/libxl/libxl_dm.c Mon Mar 19 14:24:01 2012 +0000 @@ -893,7 +893,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; @@ -985,6 +985,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-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |