From patchwork Fri Dec 2 15:08:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9458701 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1D9F060236 for ; Fri, 2 Dec 2016 15:11:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10E792847C for ; Fri, 2 Dec 2016 15:11:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05B8A2855C; Fri, 2 Dec 2016 15:11:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B3A622847C for ; Fri, 2 Dec 2016 15:11:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCpSp-0003Sf-NT; Fri, 02 Dec 2016 15:09:27 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCpSn-0003KT-WC for xen-devel@lists.xen.org; Fri, 02 Dec 2016 15:09:26 +0000 Received: from [85.158.139.211] by server-3.bemta-5.messagelabs.com id 23/73-01948-4AE81485; Fri, 02 Dec 2016 15:09:24 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeJIrShJLcpLzFFi42I53H6XVXdxn2O Ewft7uhZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8a32QtZC+4LVLx/epalgXErTxcjF4eQwBJG iVUrVrN0MXJysAnYS3T9OcoEYosISEtc+3yZEcRmFiiRaDrXydzFyMEhLOAoMeO+O0iYRUBV4 veeZjYQm1fAUuLxpA3MILaEgLzEwvNHwMZwAsUftFwHGyMkYCHRfOMOC0S9oMTJmU9YQEYyC6 hLrJ8nBLFJXqJ562zmCYy8s5BUzUKomoWkagEj8ypG9eLUorLUIl1zvaSizPSMktzEzBxdQwN TvdzU4uLE9NScxKRiveT83E2MwHBiAIIdjMcmOx9ilORgUhLlNc1xjBDiS8pPqcxILM6ILyrN SS0+xCjDwaEkwdvcC5QTLEpNT61Iy8wBBjZMWoKDR0mEVxUkzVtckJhbnJkOkTrFqCglzusMk hAASWSU5sG1waLpEqOslDAvI9AhQjwFqUW5mSWo8q8YxTkYlYQhpvBk5pXATX8FtJgJaHHHdX uQxSWJCCmpBsbciIJ8zc3rPL5eCZ/rJ7WnQ+yrdRz/LY7WFVINZrqKAd9WWeS+X7jEnT8q4gT jh+Vd72Qr+E41CBvwPdjuxhNy4tpyO+vbLM1LDYqbJC5UmgadN0jn5CtTi5v09/vyZxeqJlaU ch6IfO9y5+iLisTWvEM5H992/ZpyIKWgYEV2zdkVjuebdJVYijMSDbWYi4oTAdB1ErOhAgAA X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-5.tower-206.messagelabs.com!1480691363!71818359!1 X-Originating-IP: [195.135.221.5] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG X-StarScan-Received: X-StarScan-Version: 9.0.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 63985 invoked from network); 2 Dec 2016 15:09:24 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-5.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 2 Dec 2016 15:09:24 -0000 Received: from laptop.vms (mhy71-2-88-167-63-197.fbx.proxad.net [88.167.63.197]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Fri, 02 Dec 2016 16:09:22 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Fri, 2 Dec 2016 16:08:32 +0100 Message-Id: <20161202150841.31227-27-cbosdonnat@suse.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161202150841.31227-1-cbosdonnat@suse.com> References: <20161202150841.31227-1-cbosdonnat@suse.com> MIME-Version: 1.0 Cc: Ian Jackson , Wei Liu , Cedric Bosdonnat Subject: [Xen-devel] [PATCH v2 26/35] libxl/libxl_psr.c: used LOG*D functions X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Cedric Bosdonnat Use LOG*D logging functions where possible instead of the LOG* ones. Signed-off-by: Cédric Bosdonnat Acked-by: Wei Liu --- 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; }