From: Ian Campbell Date: Mon, 19 Mar 2012 14:24:01 +0000 (+0000) Subject: libxl: log device model arguments to aid debugging X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8c8ee1cc11729f37026212d7d79a514dcd50bd51;p=xen.git 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 Committed-by: Ian Jackson --- diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index 1261499477..f1ad4010be 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -893,7 +893,7 @@ int libxl__create_device_model(libxl__gc *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)