From patchwork Tue Nov 15 10:19:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9429371 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 A915660469 for ; Tue, 15 Nov 2016 10:22:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91133286B9 for ; Tue, 15 Nov 2016 10:22:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85EC9286CD; Tue, 15 Nov 2016 10:22:28 +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 3D7A4286B9 for ; Tue, 15 Nov 2016 10:22:28 +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 1c6aqg-0005tT-AH; Tue, 15 Nov 2016 10:20:18 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6aqe-0005lq-Bp for xen-devel@lists.xen.org; Tue, 15 Nov 2016 10:20:16 +0000 Received: from [193.109.254.147] by server-7.bemta-6.messagelabs.com id B0/F6-21485-E51EA285; Tue, 15 Nov 2016 10:20:14 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIIsWRWlGSWpSXmKPExsVyuP0uq27cQ60 Igw+rOS2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oyFG1eyFOwVqJj76TNbA+N0ni5GLg4hgSWM Ei+OfmDsYuTkYBOwl+j6c5QJxBYRkJa49vkyI0gRs8AJRomejZvZQBLCAnYSR36dBWtgEVCVm PznNiuIzStgKfHs4z5mEFtCQF7iwtVTLCA2J1D859Gn7CC2kICFxJLL3cwQ9YISJ2c+AarhAF qgLrF+nhBImBmotXnrbOYJjLyzkFTNQqiahaRqASPzKkaN4tSistQiXUMjvaSizPSMktzEzBx dQwMzvdzU4uLE9NScxKRiveT83E2MwKBiAIIdjJc3BhxilORgUhLlFVqtFSHEl5SfUpmRWJwR X1Sak1p8iFGGg0NJglfhAVBOsCg1PbUiLTMHGN4waQkOHiUR3hiQNG9xQWJucWY6ROoUo6KUO O/T+0AJAZBERmkeXBsspi4xykoJ8zICHSLEU5BalJtZgir/ilGcg1FJmFcDZDxPZl4J3PRXQI uZgBbvMtcAWVySiJCSamDcm5THYjfNfflazqW7Eh4mHH57/YPAjYaMn4xxEs5/f7i6mTT8XV1 /psrIq1G5KXB6dbJI7OxnQjWdeaxvdPPZzt2Uq3h658xGuc171x0/Mv3xKvWVeyeuVF0fZnPP g/uueu/qmsha86VSrXzRJ9m2qfUFdfH6stz6IbSo8o1gTQhTzqaDBQuUWIozEg21mIuKEwGAO /tFpAIAAA== X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-5.tower-27.messagelabs.com!1479205213!71890162!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 56890 invoked from network); 15 Nov 2016 10:20:14 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-5.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 15 Nov 2016 10:20:14 -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); Tue, 15 Nov 2016 11:20:12 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Tue, 15 Nov 2016 11:19:04 +0100 Message-Id: <20161115101913.10396-27-cbosdonnat@suse.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161115101913.10396-1-cbosdonnat@suse.com> References: <20161115101913.10396-1-cbosdonnat@suse.com> MIME-Version: 1.0 Cc: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= , Wei Liu , Ian Jackson , =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Subject: [Xen-devel] [PATCH 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: Cédric Bosdonnat Use LOG*D logging functions where possible instead of the LOG* ones. Signed-off-by: Cédric Bosdonnat --- 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; }