From patchwork Tue Nov 15 10:18:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9429327 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 3945760469 for ; Tue, 15 Nov 2016 10:22:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2232E286B9 for ; Tue, 15 Nov 2016 10:22:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17310286C2; Tue, 15 Nov 2016 10:22:03 +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 C9236286B9 for ; Tue, 15 Nov 2016 10:22:02 +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 1c6aqQ-0004wZ-AP; Tue, 15 Nov 2016 10:20:02 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6aqO-0004pu-HN for xen-devel@lists.xen.org; Tue, 15 Nov 2016 10:20:00 +0000 Received: from [193.109.254.147] by server-10.bemta-6.messagelabs.com id 08/CF-30618-051EA285; Tue, 15 Nov 2016 10:20:00 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsVyuP0uq67/Q60 Ig7WrFS2WfFzM4sDocXT3b6YAxijWzLyk/IoE1ozpu4QKOgUqjk3Zxd7AuIu7i5GLQ0hgCaNE z40/rF2MnBxsAvYSXX+OMoHYIgLSEtc+X2YEKWIWOAFUtHEzG0hCWMBH4uCT+4wgNouAqkT72 +0sIDavgIXE3K7zYIMkBOQlLlw9BRbnFLCU+Hn0KTuILQRUs+RyNzNEvaDEyZlPgGo4gBaoS6 yfJwQSZgZqbd46m3kCI+8sJFWzEKpmIalawMi8ilGjOLWoLLVI18hEL6koMz2jJDcxM0fX0MB MLze1uDgxPTUnMalYLzk/dxMjMKQYgGAH48p1gYcYJTmYlER5hVZrRQjxJeWnVGYkFmfEF5Xm pBYfYpTh4FCS4FV4AJQTLEpNT61Iy8wBBjdMWoKDR0mENwYkzVtckJhbnJkOkTrFqCglzhsAk hAASWSU5sG1wSLqEqOslDAvI9AhQjwFqUW5mSWo8q8YxTkYlYR5NUCm8GTmlcBNfwW0mAlo8S 5zDZDFJYkIKakGxobq8g9aG76axSWanz75e2pYM/PWPatTotyd7sREBnVxzXiy3XKq4Bep7Lu eM7y7xXcriKfE+JnoVvOcVmIQZJwvE/5tu+7iF266+1iriiv3/fDhY96ddOtR9OuP9pea7015 db1Wjd3sktUXhzwXD4+zpR8veV8r3jVDeoHR+bM+Cs0eOa80lFiKMxINtZiLihMBkJDWn6MCA AA= X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-7.tower-27.messagelabs.com!1479205199!67219973!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 41864 invoked from network); 15 Nov 2016 10:19:59 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-7.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 15 Nov 2016 10:19:59 -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:19:58 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Tue, 15 Nov 2016 11:18:44 +0100 Message-Id: <20161115101913.10396-7-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 06/35] libxl/libxl_checkpoint_device.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_checkpoint_device.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/libxl/libxl_checkpoint_device.c b/tools/libxl/libxl_checkpoint_device.c index 0a16dbb..01e74b5 100644 --- a/tools/libxl/libxl_checkpoint_device.c +++ b/tools/libxl/libxl_checkpoint_device.c @@ -132,7 +132,7 @@ static void device_setup_iterate(libxl__egc *egc, libxl__ao_device *aodev) if (!dev->ops) { libxl_device_nic * nic = NULL; libxl_device_disk * disk = NULL; - uint32_t domid; + uint32_t domid = INVALID_DOMID; int devid; if (dev->kind == LIBXL__DEVICE_KIND_VIF) { nic = (libxl_device_nic *)dev->backend_dev; @@ -143,15 +143,15 @@ static void device_setup_iterate(libxl__egc *egc, libxl__ao_device *aodev) domid = disk->backend_domid; devid = libxl__device_disk_dev_number(disk->vdev, NULL, NULL); } else { - LOG(ERROR,"device kind not handled by checkpoint: %s", - libxl__device_kind_to_string(dev->kind)); + LOGD(ERROR, domid, "device kind not handled by checkpoint: %s", + libxl__device_kind_to_string(dev->kind)); aodev->rc = ERROR_FAIL; goto out; } - LOG(ERROR,"device not handled by checkpoint" - " (device=%s:%"PRId32"/%"PRId32")", - libxl__device_kind_to_string(dev->kind), - domid, devid); + LOGD(ERROR, domid, "device not handled by checkpoint" + " (device=%s:%"PRId32"/%"PRId32")", + libxl__device_kind_to_string(dev->kind), + domid, devid); aodev->rc = ERROR_CHECKPOINT_DEVICE_NOT_SUPPORTED; goto out; }