From patchwork Thu Nov 17 17:36:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9434809 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 AF4716047D for ; Thu, 17 Nov 2016 17:38:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A314E29689 for ; Thu, 17 Nov 2016 17:38:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 980752968D; Thu, 17 Nov 2016 17:38:41 +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 4F3DE29689 for ; Thu, 17 Nov 2016 17:38:41 +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 1c7QcX-0000o9-IK; Thu, 17 Nov 2016 17:37:09 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7QcW-0000Xt-1c for xen-devel@lists.xen.org; Thu, 17 Nov 2016 17:37:08 +0000 Received: from [193.109.254.147] by server-7.bemta-6.messagelabs.com id E0/7F-12058-3CAED285; Thu, 17 Nov 2016 17:37:07 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeJIrShJLcpLzFFi42I53H6XVffwK90 Ig4vPBCyWfFzM4sDocXT3b6YAxijWzLyk/IoE1oyzu3sZC6bzVEz97tfAOIWzi5GLQ0hgCaPE 5WP72LoYOTnYBOwluv4cZQKxRQSkJa59vswIYjMLlEjsfdoBZgsLOEp8f7CXHcRmEVCVuNt2E qyXV8BC4sLuv6wgtoSAvMSFq6dYQGxOoPiBw+eYQWwhAXOJN28WMEHUC0qcnPkEqIYDaL66xP p5QhCr5CWat85mnsDIOwtJ1SyEqllIqhYwMq9i1ChOLSpLLdI1MtdLKspMzyjJTczM0TU0MNP LTS0uTkxPzUlMKtZLzs/dxAgMKAYg2MG4eG3gIUZJDiYlUV7ml7oRQnxJ+SmVGYnFGfFFpTmp xYcYZTg4lCR4C0BygkWp6akVaZk5wNCGSUtw8CiJ8EqCpHmLCxJzizPTIVKnGBWlxHlPgyQEQ BIZpXlwbbB4usQoKyXMywh0iBBPQWpRbmYJqvwrRnEORiVh3hSQKTyZeSVw018BLWYCWrxHQA dkcUkiQkqqgXGzbYzK3/mCGhI9BrsZOARfywq8uPH+q/vJGD1lJimF4u5FVk8LZ+dOikz3i5l 0ZqHOvqI3Keu1pHeUc6fv/3bXgmvdwaI0U8bajo+v9fm3F19lWxm4ZKeFopeKlVz8PwenZzrV eybeuP4zlGtWhnNW5F6Gqws+mr1ZFHY5uC+z5cKmxTzHGJVYijMSDbWYi4oTAaYfkW2iAgAA X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-15.tower-27.messagelabs.com!1479404226!19571246!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 13157 invoked from network); 17 Nov 2016 17:37:07 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-15.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 17 Nov 2016 17:37:07 -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:37:05 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Thu, 17 Nov 2016 18:36:16 +0100 Message-Id: <20161117173617.6697-35-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 34/35] libxl/libxl_x86.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_x86.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/libxl/libxl_x86.c b/tools/libxl/libxl_x86.c index e1844c8..5da7504 100644 --- a/tools/libxl/libxl_x86.c +++ b/tools/libxl/libxl_x86.c @@ -327,7 +327,7 @@ int libxl__arch_domain_create(libxl__gc *gc, libxl_domain_config *d_config, tm = localtime_r(&t, &result); if (!tm) { - LOGE(ERROR, "Failed to call localtime_r"); + LOGED(ERROR, domid, "Failed to call localtime_r"); ret = ERROR_FAIL; goto out; } @@ -350,7 +350,7 @@ int libxl__arch_domain_create(libxl__gc *gc, libxl_domain_config *d_config, libxl_defbool_val(d_config->b_info.u.pv.e820_host)) { ret = libxl__e820_alloc(gc, domid, d_config); if (ret) { - LOGE(ERROR, "Failed while collecting E820 with: %d (errno:%d)\n", + LOGED(ERROR, domid, "Failed while collecting E820 with: %d (errno:%d)\n", ret, errno); } } @@ -532,7 +532,7 @@ int libxl__arch_domain_construct_memmap(libxl__gc *gc, e820_entries++; if (e820_entries >= E820MAX) { - LOG(ERROR, "Ooops! Too many entries in the memory map!"); + LOGD(ERROR, domid, "Ooops! Too many entries in the memory map!"); rc = ERROR_INVAL; goto out; }