From patchwork Tue Nov 15 10:18:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9429335 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 ED2E960469 for ; Tue, 15 Nov 2016 10:22:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3B08286C2 for ; Tue, 15 Nov 2016 10:22:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7023286C4; Tue, 15 Nov 2016 10:22:08 +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 72159286B9 for ; Tue, 15 Nov 2016 10:22:08 +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 1c6aqa-0005et-Lg; Tue, 15 Nov 2016 10:20:12 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6aqZ-0005a6-PK for xen-devel@lists.xen.org; Tue, 15 Nov 2016 10:20:11 +0000 Received: from [85.158.143.35] by server-4.bemta-6.messagelabs.com id 25/CD-25709-B51EA285; Tue, 15 Nov 2016 10:20:11 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeJIrShJLcpLzFFi42I53H6XVTfqoVa EwbG7EhZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa0bP7gtsBe95K7ZP72FrYJzA1cXIxSEksIRR YsOmh4xdjJwcbAL2El1/jjKB2CIC0hLXPl9mBCliFjjBKNGzcTMbSEJYwFFi05b/7F2MHBwsA qoSn3f4gpi8ApYS7XtVQSokBOQlLlw9xQJicwKFfx59yg5iCwlYSCy53M0MYvMKCEqcnPmEBa SVWUBdYv08IZAwM1Br89bZzBMYeWchqZqFUDULSdUCRuZVjBrFqUVlqUW6RqZ6SUWZ6RkluYm ZObqGBmZ6uanFxYnpqTmJScV6yfm5mxiBAcUABDsYVy0IPMQoycGkJMortForQogvKT+lMiOx OCO+qDQntfgQowwHh5IEr8IDoJxgUWp6akVaZg4wtGHSEhw8SiK8MSBp3uKCxNzizHSI1ClGR Slx3gCQhABIIqM0D64NFk+XGGWlhHkZgQ4R4ilILcrNLEGVf8UozsGoJMz76j7QFJ7MvBK46a +AFjMBLd5lrgGyuCQRISXVwGg+v0f2+efvfhrKU2O+cEq1OSmyZy9+o92Xz7/2b1fBwczNyzY 5pq19n5YdHnH27nPB5dGrfr90fHbofrlo6fHfkz9XdBVO9favvLhdr3H+ltn1zVb8iXH2ETHH 3ddtPtC9kGN97eVWL31dVw/riQuYDLidLnE03sy56xO0luO0+8OvrLq7fJRYijMSDbWYi4oTA c9oADKiAgAA X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-16.tower-21.messagelabs.com!1479205209!38847648!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 56145 invoked from network); 15 Nov 2016 10:20:10 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-16.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 15 Nov 2016 10:20:10 -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); Tue, 15 Nov 2016 11:20:09 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Tue, 15 Nov 2016 11:18:59 +0100 Message-Id: <20161115101913.10396-22-cbosdonnat@suse.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161115101913.10396-1-cbosdonnat@suse.com> References: <20161115101913.10396-1-cbosdonnat@suse.com> MIME-Version: 1.0 Cc: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= , Wei Liu , Ian Jackson , =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Subject: [Xen-devel] [PATCH 21/35] libxl/libxl_netbsd.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: Cédric Bosdonnat Use LOG*D logging functions where possible instead of the LOG* ones. Signed-off-by: Cédric Bosdonnat --- tools/libxl/libxl_netbsd.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/libxl/libxl_netbsd.c b/tools/libxl/libxl_netbsd.c index a79b8aa..2edfb00 100644 --- a/tools/libxl/libxl_netbsd.c +++ b/tools/libxl/libxl_netbsd.c @@ -42,7 +42,8 @@ static int libxl__hotplug(libxl__gc *gc, libxl__device *dev, char ***args, 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; } @@ -69,7 +70,8 @@ int libxl__get_hotplug_script_info(libxl__gc *gc, libxl__device *dev, switch (dev->backend_kind) { case LIBXL__DEVICE_KIND_VBD: if (num_exec != 0) { - LOG(DEBUG, "num_exec %d, not running hotplug scripts", num_exec); + LOGD(DEBUG, dev->domid, + "num_exec %d, not running hotplug scripts", num_exec); rc = 0; goto out; } @@ -86,7 +88,8 @@ int libxl__get_hotplug_script_info(libxl__gc *gc, libxl__device *dev, */ if ((num_exec != 0) || (libxl_get_stubdom_id(CTX, dev->domid) && num_exec)) { - LOG(DEBUG, "num_exec %d, not running hotplug scripts", num_exec); + LOGD(DEBUG, dev->domid, + "num_exec %d, not running hotplug scripts", num_exec); rc = 0; goto out; }