From patchwork Thu Nov 17 17:36:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9434825 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 E3B416047D for ; Thu, 17 Nov 2016 17:38:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D725A20499 for ; Thu, 17 Nov 2016 17:38:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC3EF2939E; Thu, 17 Nov 2016 17:38:55 +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 8588029689 for ; Thu, 17 Nov 2016 17:38:55 +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 1c7QcF-00009Z-Sh; Thu, 17 Nov 2016 17:36:51 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7QcE-000057-K2 for xen-devel@lists.xen.org; Thu, 17 Nov 2016 17:36:50 +0000 Received: from [193.109.254.147] by server-11.bemta-6.messagelabs.com id 36/FB-21331-1BAED285; Thu, 17 Nov 2016 17:36:49 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsVyuP0uq+7GV7o RBkde8Fks+biYxYHR4+ju30wBjFGsmXlJ+RUJrBnzds9gKvjCU/H+1hamBsarnF2MXBxCAksY JeZ+fs3cxcjJwSZgL9H15ygTiC0iIC1x7fNlRhCbWaBEYu/TDjBbWMBVom3aGRYQm0VAVaJl4 gtWEJtXwELixr8ZYHMkBOQlLlw9BVbDCRQ/cPgcWFxIwFzizZsFTBD1ghInZz4BquEAmq8usX 6eEMQqeYnmrbOZJzDyzkJSNQuhahaSqgWMzKsYNYpTi8pSi3SNjfSSijLTM0pyEzNzdA0NzPR yU4uLE9NTcxKTivWS83M3MQJDigEIdjCeXhd4iFGSg0lJlJf5pW6EEF9SfkplRmJxRnxRaU5q 8SFGGQ4OJQneApCcYFFqempFWmYOMLhh0hIcPEoivJIgad7igsTc4sx0iNQpRkUpcd7TIAkBk ERGaR5cGyyiLjHKSgnzMgIdIsRTkFqUm1mCKv+KUZyDUUmYdxHIFJ7MvBK46a+AFjMBLd4joA OyuCQRISXVwKhv4DA19alX36TM4mk/arkqjlXbLJgXJDPparzuvuiyR0wRPmbrzJWPng+7cXT G35lXg20Dv63d4tzxcPuCSLktjidNPp7orbnQfKH4xu5P0/qXhfztW/6saNbftvszDtntDiyL lN3JvM+uV758qvo89ccnl0834H7GVZW2NOZZ2M/bvOwfPvsosRRnJBpqMRcVJwIA79iA96MCA AA= X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-13.tower-27.messagelabs.com!1479404208!62955601!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 15999 invoked from network); 17 Nov 2016 17:36:49 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-13.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 17 Nov 2016 17:36:49 -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:36:47 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Thu, 17 Nov 2016 18:36:00 +0100 Message-Id: <20161117173617.6697-19-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 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 --- 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; }