From patchwork Fri Dec 2 15:08:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9458687 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 D993760236 for ; Fri, 2 Dec 2016 15:11:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD17428542 for ; Fri, 2 Dec 2016 15:11:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1E2A2856B; Fri, 2 Dec 2016 15:11:16 +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 535C128542 for ; Fri, 2 Dec 2016 15:11:16 +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 1cCpSl-0003FN-Ca; Fri, 02 Dec 2016 15:09:23 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCpSk-00039F-4h for xen-devel@lists.xen.org; Fri, 02 Dec 2016 15:09:22 +0000 Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id C7/A1-01928-1AE81485; Fri, 02 Dec 2016 15:09:21 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsVyuP0uq+68Psc Ig119EhZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8aDP4sZC+bwVqzY85mpgfEnZxcjF4eQwBJG iQc3pjJ1MXJysAnYS3T9OQpmiwhIS1z7fJkRxGYWKJFoOtfJDGILC7hKtE07wwJiswioSvT+e MkOYvMKWErsfnkArEZCQF5i4fkjYHM4geIPWq6DzRESsJBovnGHBaJeUOLkzCdANgfQfHWJ9f OEIFbJSzRvnc08gZF3FpKqWQhVs5BULWBkXsWoUZxaVJZapGtkrJdUlJmeUZKbmJmja2hgqpe bWlycmJ6ak5hUrJecn7uJERhS9QwMjDsYd7T7HWKU5GBSEuU1zXGMEOJLyk+pzEgszogvKs1J LT7EKMPBoSTB29wLlBMsSk1PrUjLzAEGN0xagoNHSYRXFSTNW1yQmFucmQ6ROsWoKCXOewQkI QCSyCjNg2uDRdQlRlkpYV5GBgYGIZ6C1KLczBJU+VeM4hyMSsK8ziBTeDLzSuCmvwJazAS0uO O6PcjikkSElFQDo8irBYe/eNn1fS0sP9/wz+PyooptH5rdD82VTTqW5H8m9W8C51L3k4wXbim 2NzjystssN5owf5dw6c8ZbaF59dO+P69s3z6HxUa1rtnxTkee7vEbLR+9jrG2hgd/slXKaWER 5n36ZPpdU0mhhSduvOhzNT508dLhe+//n5stl9AnVvurvfGSqBJLcUaioRZzUXEiAHbWeQ2jA gAA X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-9.tower-206.messagelabs.com!1480691357!73575483!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 41529 invoked from network); 2 Dec 2016 15:09:17 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-9.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 2 Dec 2016 15:09:17 -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:17 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Fri, 2 Dec 2016 16:08:24 +0100 Message-Id: <20161202150841.31227-19-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 18/35] libxl/libxl_freebsd.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_freebsd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/libxl/libxl_freebsd.c b/tools/libxl/libxl_freebsd.c index c527455..6442cce 100644 --- a/tools/libxl/libxl_freebsd.c +++ b/tools/libxl/libxl_freebsd.c @@ -121,7 +121,7 @@ static int libxl__hotplug_nic(libxl__gc *gc, libxl__device *dev, rc = libxl__nic_type(gc, dev, &nictype); if (rc) { - LOG(ERROR, "error when fetching nic type"); + LOGD(ERROR, dev->domid, "error when fetching nic type"); rc = ERROR_FAIL; goto out; } @@ -143,7 +143,8 @@ static int libxl__hotplug_nic(libxl__gc *gc, libxl__device *dev, script = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/%s", be_path, "script")); if (!script) { - LOGEV(ERROR, errno, "unable to read script from %s", be_path); + LOGEVD(ERROR, errno, dev->domid, + "unable to read script from %s", be_path); rc = ERROR_FAIL; goto out; } @@ -172,7 +173,8 @@ static int libxl__hotplug_disk(libxl__gc *gc, libxl__device *dev, script = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/%s", be_path, "script")); if (!script) { - LOGEV(ERROR, errno, "unable to read script from %s", be_path); + LOGEVD(ERROR, errno, dev->domid, + "unable to read script from %s", be_path); rc = ERROR_FAIL; goto out; }