]> xenbits.xensource.com Git - xen.git/commitdiff
libxl/libxl_xshelp.c: used LOG*D functions
authorCedric Bosdonnat <cbosdonnat@suse.com>
Fri, 2 Dec 2016 15:08:41 +0000 (16:08 +0100)
committerWei Liu <wei.liu2@citrix.com>
Sat, 3 Dec 2016 15:57:35 +0000 (15:57 +0000)
Use LOG*D logging functions where possible instead of the LOG* ones.

Signed-off-by: Cédric Bosdonnat <cbosdonnat@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_xshelp.c

index b3bac6d270641565916cf1db945239dfabbba932..a50805fcec67d72f1ef8318a79f8b9d0f89ab828 100644 (file)
@@ -146,7 +146,7 @@ char *libxl__xs_get_dompath(libxl__gc *gc, uint32_t domid)
     libxl_ctx *ctx = libxl__gc_owner(gc);
     char *s = xs_get_domain_path(ctx->xsh, domid);
     if (!s) {
-        LOGE(ERROR, "failed to get dompath for %"PRIu32, domid);
+        LOGED(ERROR, domid, "Failed to get dompath");
         return NULL;
     }
     libxl__ptr_add(gc, s);
@@ -189,7 +189,7 @@ char *libxl__xs_libxl_path(libxl__gc *gc, uint32_t domid)
 {
     char *s = GCSPRINTF("/libxl/%i", domid);
     if (!s)
-        LOG(ERROR, "cannot allocate create paths");
+        LOGD(ERROR, domid, "cannot allocate create paths");
     return s;
 }