From patchwork Fri Dec 2 15:08:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9458737 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 2389460236 for ; Fri, 2 Dec 2016 15:11:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16F4D2847C for ; Fri, 2 Dec 2016 15:11:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0BEFD28556; Fri, 2 Dec 2016 15:11:57 +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 C1E832847C for ; Fri, 2 Dec 2016 15:11:56 +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 1cCpSw-0003oF-W1; Fri, 02 Dec 2016 15:09:34 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCpSv-0003jF-AJ for xen-devel@lists.xen.org; Fri, 02 Dec 2016 15:09:33 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id E1/9E-12366-CAE81485; Fri, 02 Dec 2016 15:09:32 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsVyuP0uq+6aPsc Ig6N/2SyWfFzM4sDocXT3b6YAxijWzLyk/IoE1oz+SdNZCx5wVPTseMrSwNjL3sXIxSEksIRR 4tXuKSxdjJwcbAL2El1/jjKB2CIC0hLXPl9mBLGZBUokms51MoPYwgIuEtu2fWEHsVkEVCW6N 55hA7F5BSwl/qyYBBaXEJCXWHj+CNgcTqD4g5brYHOEBCwkmm/cYYGoF5Q4OfMJkM0BNF9dYv 08IYhV8hLNW2czT2DknYWkahZC1SwkVQsYmVcxahSnFpWlFukameklFWWmZ5TkJmbm6BoamOn lphYXJ6an5iQmFesl5+duYgSGFAMQ7GA8syDwEKMkB5OSKK9pjmOEEF9SfkplRmJxRnxRaU5q 8SFGGQ4OJQne5l6gnGBRanpqRVpmDjC4YdISHDxKIryqIGne4oLE3OLMdIjUKUZFKXHeIyAJA ZBERmkeXBssoi4xykoJ8zICHSLEU5BalJtZgir/ilGcg1FJmHcfyBSezLwSuOmvgBYzAS3uuG 4PsrgkESEl1cCYnuA5z5LdryJMYeF0WWf7Q4WFunzK71IVPnLPLes6WjD314eqTSWBp8SS7rW e9N64yIfdM6+p/L/XSb9j3W2HV9XHF5563piq1nDfqmZqcW1ovsxstu3Vf0vcHPOKk+4F5ba/ vVtrYRcYt/+n5Ze7zF1Fy+XqVDweaDFyKujO+ZfotFpIVImlOCPRUIu5qDgRAAvIwJWjAgAA X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-12.tower-21.messagelabs.com!1480691371!46404698!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 52707 invoked from network); 2 Dec 2016 15:09:32 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-12.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 2 Dec 2016 15:09:32 -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:28 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Fri, 2 Dec 2016 16:08:41 +0100 Message-Id: <20161202150841.31227-36-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 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 Acked-by: Wei Liu --- 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; }