From patchwork Tue Nov 15 10:19:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9429357 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 4C80560755 for ; Tue, 15 Nov 2016 10:22:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 353AB286B9 for ; Tue, 15 Nov 2016 10:22:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A0CA286C4; Tue, 15 Nov 2016 10:22:20 +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 C9E49286CD for ; Tue, 15 Nov 2016 10:22:19 +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 1c6aqi-00060L-Al; Tue, 15 Nov 2016 10:20:20 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6aqg-0005sW-Bt for xen-devel@lists.xen.org; Tue, 15 Nov 2016 10:20:18 +0000 Received: from [193.109.254.147] by server-1.bemta-6.messagelabs.com id D5/ED-24503-161EA285; Tue, 15 Nov 2016 10:20:17 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsVyuP0uq27CQ60 Ig579NhZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8aZwzOYC6byVHz9toOlgXEtZxcjF4eQwBJG iW/nn7J1MXJysAnYS3T9OcoEYosISEtc+3yZEaSIWeAEo0TPxs1gRcIC7hI3lvwGs1kEVCUOH pjLCGLzClhK3D40AywuISAvceHqKRYQmxMo/vPoU3YQW0jAQmLJ5W5miHpBiZMznwDVcAAtUJ dYP08IJMwM1Nq8dTbzBEbeWUiqZiFUzUJStYCReRWjenFqUVlqka6FXlJRZnpGSW5iZo6uoYG ZXm5qcXFiempOYlKxXnJ+7iZGYEgxAMEOxtmX/Q8xSnIwKYnyCq3WihDiS8pPqcxILM6ILyrN SS0+xCjDwaEkwbvpPlBOsCg1PbUiLTMHGNwwaQkOHiUR3hUgad7igsTc4sx0iNQpRkUpcd6nI AkBkERGaR5cGyyiLjHKSgnzMgIdIsRTkFqUm1mCKv+KUZyDUUmYV+MB0BSezLwSuOmvgBYzAS 3eZa4BsrgkESEl1cCox+pirKcnXWVt/V/Aj2fmx+lSC/6ltvlvOPv+sV6WwZvc+a/qfm27k+T oLGkur3vnOht36h6XieEfXaY9OhA4Xcp62oeC+1MZU1t1uybGbPJcv/K/N0PZXSlTiyeHhLge dIhenZa74qxwDXOi9ZI3EV9YlOu0VVeXWwV2SRtqhnlcfjFtlaASS3FGoqEWc1FxIgBFGoMxo wIAAA== X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-15.tower-27.messagelabs.com!1479205216!18953323!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 10935 invoked from network); 15 Nov 2016 10:20:16 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-15.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 15 Nov 2016 10:20:16 -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:15 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Tue, 15 Nov 2016 11:19:08 +0100 Message-Id: <20161115101913.10396-31-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 30/35] libxl/libxl_save_callout.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_save_callout.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/libxl/libxl_save_callout.c b/tools/libxl/libxl_save_callout.c index 2e6267d..46b892c 100644 --- a/tools/libxl/libxl_save_callout.c +++ b/tools/libxl/libxl_save_callout.c @@ -294,8 +294,8 @@ static void helper_stdout_readable(libxl__egc *egc, libxl__ev_fd *ev, int rc, errnoval; if (revents & (POLLERR|POLLPRI)) { - LOG(ERROR, "%s signaled POLLERR|POLLPRI (%#x)", - shs->stdout_what, revents); + LOGD(ERROR, shs->domid, "%s signaled POLLERR|POLLPRI (%#x)", + shs->stdout_what, revents); rc = ERROR_FAIL; out: /* this is here because otherwise we bypass the decl of msg[] */ @@ -339,14 +339,14 @@ static void helper_exited(libxl__egc *egc, libxl__ev_child *ch, if (shs->need_results) { if (!shs->rc) { - LOG(ERROR,"%s exited without providing results",what); + LOGD(ERROR,shs->domid,"%s exited without providing results",what); shs->rc = ERROR_FAIL; } } if (!shs->completed) { if (!shs->rc) { - LOG(ERROR,"%s exited without signaling completion",what); + LOGD(ERROR,shs->domid,"%s exited without signaling completion",what); shs->rc = ERROR_FAIL; } }