From patchwork Thu Nov 17 17:36:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9434843 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 DD3FE60755 for ; Thu, 17 Nov 2016 17:39:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBE8E2939E for ; Thu, 17 Nov 2016 17:39:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0D6329689; Thu, 17 Nov 2016 17:39:03 +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 32DF92939E for ; Thu, 17 Nov 2016 17:39:02 +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 1c7QcY-0000rA-QV; Thu, 17 Nov 2016 17:37:10 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7QcX-0000mN-6Y for xen-devel@lists.xen.org; Thu, 17 Nov 2016 17:37:09 +0000 Received: from [85.158.137.68] by server-13.bemta-3.messagelabs.com id 31/16-23854-4CAED285; Thu, 17 Nov 2016 17:37:08 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsVyuP0uq+7hV7o RBncnW1os+biYxYHR4+ju30wBjFGsmXlJ+RUJrBnL1l1jL9jBUdE65TxbA+NLti5GLg4hgSWM Ejfb3jF3MXJysAnYS3T9OcoEYosISEtc+3yZEcRmFiiR2Pu0A8wWFnCR2LbtCzuIzSKgKvG64 wobiM0rYCGxac8fsBoJAXmJC1dPsYDYnEDxA4fPgc0XEjCXePNmARNEvaDEyZlPgGo4gOarS6 yfJwSxSl6ieets5gmMvLOQVM1CqJqFpGoBI/MqRo3i1KKy1CJdI1O9pKLM9IyS3MTMHF1DA2O 93NTi4sT01JzEpGK95PzcTYzAkKpnYGDcwdh6wu8QoyQHk5IoL/NL3QghvqT8lMqMxOKM+KLS nNTiQ4wyHBxKErwFIDnBotT01Iq0zBxgcMOkJTh4lER4JUHSvMUFibnFmekQqVOMilLivKdBE gIgiYzSPLg2WERdYpSVEuZlZGBgEOIpSC3KzSxBlX/FKM7BqCTM+wBkCk9mXgnc9FdAi5mAFu 8R0AFZXJKIkJJqYJQR+Bpn7MiklzA3mGGn3VaFSbxtwvEy3rMcpzE8umvKPuv8/An/+8S1/t7 fly9nJb7du+LHNruzddu5Q/3Y24Q77WY8WHAjb8GqQ0tZf8r+junfffDY1eYJvNfvHQ50UavO VJh52OZg18ztU/Sce8X2vT5x9pGsVR2Pq3FFZJXwE8dT69WkhZVYijMSDbWYi4oTAZt1mBejA gAA X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-6.tower-31.messagelabs.com!1479404227!45193114!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 30209 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-6.tower-31.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:06 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Thu, 17 Nov 2016 18:36:17 +0100 Message-Id: <20161117173617.6697-36-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 35/35] libxl/libxl_xshelp.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_xshelp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl_xshelp.c b/tools/libxl/libxl_xshelp.c index b3bac6d..a50805f 100644 --- a/tools/libxl/libxl_xshelp.c +++ b/tools/libxl/libxl_xshelp.c @@ -146,7 +146,7 @@ char *libxl__xs_get_dompath(libxl__gc *gc, uint32_t domid) libxl_ctx *ctx = libxl__gc_owner(gc); char *s = xs_get_domain_path(ctx->xsh, domid); if (!s) { - LOGE(ERROR, "failed to get dompath for %"PRIu32, domid); + LOGED(ERROR, domid, "Failed to get dompath"); return NULL; } libxl__ptr_add(gc, s); @@ -189,7 +189,7 @@ char *libxl__xs_libxl_path(libxl__gc *gc, uint32_t domid) { char *s = GCSPRINTF("/libxl/%i", domid); if (!s) - LOG(ERROR, "cannot allocate create paths"); + LOGD(ERROR, domid, "cannot allocate create paths"); return s; }