From patchwork Thu Nov 17 17:36:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9434795 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 18D4E6047D for ; Thu, 17 Nov 2016 17:38:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C37428644 for ; Thu, 17 Nov 2016 17:38:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00E142968E; Thu, 17 Nov 2016 17:38: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 E5DFA28644 for ; Thu, 17 Nov 2016 17:38:27 +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 1c7QcP-0000UA-4e; Thu, 17 Nov 2016 17:37:01 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7QcN-0000Eb-4h for xen-devel@lists.xen.org; Thu, 17 Nov 2016 17:36:59 +0000 Received: from [193.109.254.147] by server-8.bemta-6.messagelabs.com id 3E/E6-20944-ABAED285; Thu, 17 Nov 2016 17:36:58 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeJIrShJLcpLzFFi42I53H6XVXfXK90 Ig9alghZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8bx5woF2wUq5t+5yNLAOJGni5GLQ0hgCaPE 6YOf2bsYOTnYBOwluv4cZQKxRQSkJa59vswIYjMLlEjsfdoBZHNwCAs4Ssy47w4SZhFQlXh6+ BcziM0rYCGx8uUXNhBbQkBe4sLVUywgNidQ/MDhc2A1QgLmEm/eLGCCqBeUODnzCQvISGYBdY n184QgNslLNG+dzTyBkXcWkqpZCFWzkFQtYGRexahRnFpUllqka2iol1SUmZ5RkpuYmaNraGC ml5taXJyYnpqTmFSsl5yfu4kRGE4MQLCD8dOygEOMkhxMSqK8zC91I4T4kvJTKjMSizPii0pz UosPMcpwcChJ8P58AZQTLEpNT61Iy8wBBjZMWoKDR0mEVxKklbe4IDG3ODMdInWKUVFKnDcMJ CEAksgozYNrg0XTJUZZKWFeRqBDhHgKUotyM0tQ5V8xinMwKgnzpoBM4cnMK4Gb/gpoMRPQ4j 0COiCLSxIRUlINjC6PDA9c9i7NfpCyovT0zGdd1W72X5a4bHwlqS/9haP13Uot1vM9z4T3v1P PKujQDaqbZ/LQmIl33eQVbIXPp313sbZ6rN5xV71SWr1kujJ/HK8r64eUN5F258pmzmdk3cuw p7jpge/B41t/Xf5+7dvJlYu3sDHP2sXt+8jB49TEtU/X7WbROK3EUpyRaKjFXFScCADrrwp+o QIAAA== X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-2.tower-27.messagelabs.com!1479404217!19970531!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 57671 invoked from network); 17 Nov 2016 17:36:58 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-2.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 17 Nov 2016 17:36:58 -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); Thu, 17 Nov 2016 18:36:56 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Thu, 17 Nov 2016 18:36:08 +0100 Message-Id: <20161117173617.6697-27-cbosdonnat@suse.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161117173617.6697-1-cbosdonnat@suse.com> References: <20161117173617.6697-1-cbosdonnat@suse.com> MIME-Version: 1.0 Cc: Wei Liu , Ian Jackson , 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 --- 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; }