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

[Xen-devel] [PATCH v2 26/35] libxl/libxl_psr.c: used LOG*D functions



From: Cedric Bosdonnat <cbosdonnat@xxxxxxxx>

Use LOG*D logging functions where possible instead of the LOG* ones.

Signed-off-by: Cédric Bosdonnat <cbosdonnat@xxxxxxxx>
Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 tools/libxl/libxl_psr.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tools/libxl/libxl_psr.c b/tools/libxl/libxl_psr.c
index 786183c..ec5c79d 100644
--- a/tools/libxl/libxl_psr.c
+++ b/tools/libxl/libxl_psr.c
@@ -241,15 +241,15 @@ int libxl_psr_cmt_get_sample(libxl_ctx *ctx,
 
     rc = xc_psr_cmt_get_domain_rmid(ctx->xch, domid, &rmid);
     if (rc < 0 || rmid == 0) {
-        LOGE(ERROR, "fail to get the domain rmid, "
-            "or domain is not attached with platform QoS monitoring service");
+        LOGED(ERROR, domid, "fail to get the domain rmid, "
+              "or domain is not attached with platform QoS monitoring 
service");
         rc = ERROR_FAIL;
         goto out;
     }
 
     cpu = libxl__pick_socket_cpu(gc, scope);
     if (cpu < 0) {
-        LOGE(ERROR, "failed to get socket cpu");
+        LOGED(ERROR, domid, "failed to get socket cpu");
         rc = ERROR_FAIL;
         goto out;
     }
@@ -257,14 +257,14 @@ int libxl_psr_cmt_get_sample(libxl_ctx *ctx,
     rc = xc_psr_cmt_get_data(ctx->xch, rmid, cpu, type - 1,
                              &monitor_data, tsc_r);
     if (rc < 0) {
-        LOGE(ERROR, "failed to get monitoring data");
+        LOGED(ERROR, domid, "failed to get monitoring data");
         rc = ERROR_FAIL;
         goto out;
     }
 
     rc = xc_psr_cmt_get_l3_upscaling_factor(ctx->xch, &upscaling_factor);
     if (rc < 0) {
-        LOGE(ERROR, "failed to get L3 upscaling factor");
+        LOGED(ERROR, domid, "failed to get L3 upscaling factor");
         rc = ERROR_FAIL;
         goto out;
     }
@@ -311,7 +311,7 @@ int libxl_psr_cat_set_cbm(libxl_ctx *ctx, uint32_t domid,
 
     rc = libxl__count_physical_sockets(gc, &nr_sockets);
     if (rc) {
-        LOGE(ERROR, "failed to get system socket count");
+        LOGED(ERROR, domid, "failed to get system socket count");
         goto out;
     }
 
-- 
2.10.1


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

 


Rackspace

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