From patchwork Fri Dec 2 15:08:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9458713 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 6526460236 for ; Fri, 2 Dec 2016 15:11:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58AAF2847C for ; Fri, 2 Dec 2016 15:11:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D8C52855C; Fri, 2 Dec 2016 15:11:32 +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 0C0192847C for ; Fri, 2 Dec 2016 15:11:32 +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 1cCpSt-0003gC-NR; Fri, 02 Dec 2016 15:09:31 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCpSs-0003bG-M2 for xen-devel@lists.xen.org; Fri, 02 Dec 2016 15:09:30 +0000 Received: from [85.158.139.211] by server-4.bemta-5.messagelabs.com id 07/9D-22514-8AE81485; Fri, 02 Dec 2016 15:09:28 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeJIrShJLcpLzFFi42I53H6XVXdFn2O EwZm98hZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8bUazdZCvbzVBx8dJaxgXEHZxcjJ4eQwBJG ib2d2SA2m4C9RNefo0wgtoiAtMS1z5cZQWxmgRKJpnOdzCC2sICjxPcHe9m7GDk4WARUJa7MS wMJ8wpYSty43gXWKiEgL7Hw/BEwmxMo/qDlOiPEKguJ5ht3WCDqBSVOznzCAjKGWUBdYv08IY hN8hLNW2czT2DknYWkahZC1SwkVQsYmVcxahSnFpWlFukaG+glFWWmZ5TkJmbm6BoamOrlphY XJ6an5iQmFesl5+duYgSGUz0DA+MOxgmr/A4xSnIwKYnymuY4RgjxJeWnVGYkFmfEF5XmpBYf YpTh4FCS4P3bA5QTLEpNT61Iy8wBBjZMWoKDR0mEV7UXKM1bXJCYW5yZDpE6xagoJc7rDJIQA ElklObBtcGi6RKjrJQwLyMDA4MQT0FqUW5mCar8K0ZxDkYlYYgpPJl5JXDTXwEtZgJa3HHdHm RxSSJCSqqBsci682vyz+sTea5+DuadMsFqclJzSbJ4zbIfyytjl3R/MJA+9S3XLPpC4+3lLG9 /ql59Zmv0OnIi69/jxYXeDxMsy5knlCvMTDwrwJfmdHOKyonpEabxl835t7HsviZQP6tjU8MN +6YJmwPbZ6pUFTe0BEUt23pF0flY1f/XJlr6N1our5tvoMRSnJFoqMVcVJwIANxCqsahAgAA X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-8.tower-206.messagelabs.com!1480691367!73306982!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 3564 invoked from network); 2 Dec 2016 15:09:28 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-8.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 2 Dec 2016 15:09:28 -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:27 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Fri, 2 Dec 2016 16:08:40 +0100 Message-Id: <20161202150841.31227-35-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 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 Acked-by: Wei Liu --- 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; }