From patchwork Fri Dec 2 15:08:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9458695 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 7EE6960236 for ; Fri, 2 Dec 2016 15:11:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 728DA2847C for ; Fri, 2 Dec 2016 15:11:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 673E82855C; Fri, 2 Dec 2016 15:11:19 +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 125332847C for ; Fri, 2 Dec 2016 15:11: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 1cCpSr-0003Zz-SA; Fri, 02 Dec 2016 15:09:29 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCpSp-0003RY-TY for xen-devel@lists.xen.org; Fri, 02 Dec 2016 15:09:28 +0000 Received: from [85.158.143.35] by server-7.bemta-6.messagelabs.com id 07/3C-29519-7AE81485; Fri, 02 Dec 2016 15:09:27 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeJIrShJLcpLzFFi42I53H6XVXdZn2O EweKlJhZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8bC+esZC67xV9zsa2ZuYLzJ3cXIySEksIRR 4vJpLxCbTcBeouvPUSYQW0RAWuLa58uMIDazQIlE07lO5i5GDg5hAS+JFe9dQMIsAqoSX54vZ wexeQUsJb7vOsECYksIyEssPH8EbAwnUPxBy3VGiFUWEs037rBA1AtKnJz5hAVkJLOAusT6eU IQm+QlmrfOZp7AyDsLSdUshKpZSKoWMDKvYlQvTi0qSy3SNdNLKspMzyjJTczM0TU0MNPLTS0 uTkxPzUlMKtZLzs/dxAgMJgYg2ME474T/IUZJDiYlUV7THMcIIb6k/JTKjMTijPii0pzU4kOM MhwcShK8/3qBcoJFqempFWmZOcCwhklLcPAoifCqgqR5iwsSc4sz0yFSpxgVpcR5j4AkBEASG aV5cG2wWLrEKCslzMsIdIgQT0FqUW5mCar8K0ZxDkYlYd5vIFN4MvNK4Ka/AlrMBLS447o9yO KSRISUVAOj0d41m66u06t6+fZIhsNnm+cLv5kt12XQKZDd7DlFZOpTZc+rxX5HX54QrW7mEC7 PWBQm9CA499n9JX9fLVCveHXFxnZ/lkzkj7thR7Iee9nO/9A3+1IEj8A5wdMHl9R61pzxOjr5 POOm6Hi7hwuvSsyVrjtzKq5qpvjPzVndr5ZfuPgvz//vbyWW4oxEQy3mouJEAGuHvtagAgAA X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-2.tower-21.messagelabs.com!1480691366!32439699!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 46814 invoked from network); 2 Dec 2016 15:09:26 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-2.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 2 Dec 2016 15:09:26 -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:25 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Fri, 2 Dec 2016 16:08:37 +0100 Message-Id: <20161202150841.31227-32-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 31/35] libxl/libxl_stream_write.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_stream_write.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/libxl/libxl_stream_write.c b/tools/libxl/libxl_stream_write.c index aba554b..c96a6a2 100644 --- a/tools/libxl/libxl_stream_write.c +++ b/tools/libxl/libxl_stream_write.c @@ -267,7 +267,7 @@ void libxl__stream_write_start(libxl__egc *egc, default: rc = ERROR_FAIL; - LOG(ERROR, "Unknown emulator for HVM domain"); + LOGD(ERROR, dss->domid, "Unknown emulator for HVM domain"); goto err; } stream->emu_sub_hdr.index = 0; @@ -349,7 +349,7 @@ void libxl__xc_domain_save_done(libxl__egc *egc, void *dss_void, goto err; if (retval) { - LOGEV(ERROR, errnoval, "saving domain: %s", + LOGEVD(ERROR, errnoval, dss->domid, "saving domain: %s", dss->dsps.guest_responded ? "domain responded to suspend request" : "domain did not respond to suspend request"); @@ -464,19 +464,19 @@ static void write_emulator_context_record(libxl__egc *egc, stream->emu_carefd = libxl__carefd_opened(CTX, readfd); if (readfd == -1) { rc = ERROR_FAIL; - LOGE(ERROR, "unable to open %s", filename); + LOGED(ERROR, dss->domid, "unable to open %s", filename); goto err; } if (fstat(readfd, &st)) { rc = ERROR_FAIL; - LOGE(ERROR, "unable to fstat %s", filename); + LOGED(ERROR, dss->domid, "unable to fstat %s", filename); goto err; } if (!S_ISREG(st.st_mode)) { rc = ERROR_FAIL; - LOG(ERROR, "%s is not a plain file!", filename); + LOGD(ERROR, dss->domid, "%s is not a plain file!", filename); goto err; }