From patchwork Tue Nov 15 10:19:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9429351 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 9C4F660469 for ; Tue, 15 Nov 2016 10:22:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85584286B9 for ; Tue, 15 Nov 2016 10:22:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7909A286E3; Tue, 15 Nov 2016 10:22:18 +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 31754286B9 for ; Tue, 15 Nov 2016 10:22:18 +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 1c6aqj-00064z-CL; Tue, 15 Nov 2016 10:20:21 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6aqh-0005kh-NR for xen-devel@lists.xen.org; Tue, 15 Nov 2016 10:20:19 +0000 Received: from [85.158.143.35] by server-5.bemta-6.messagelabs.com id 64/1F-01148-361EA285; Tue, 15 Nov 2016 10:20:19 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeJIrShJLcpLzFFi42I53H6XVTfpoVa EwYxb5hZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8bKrYoFywQqNvbdYGpgbOXpYuTkEBJYwijR dk0SxGYTsJfo+nOUCcQWEZCWuPb5MmMXIxcHs8AJRomejZvZQBLCQEWfD0wEs1kEVCUWLLzID mLzClhK/F99nBnElhCQl7hw9RQLiM0JFP959Ck7xDILiSWXu5kh6gUlTs58AlTDAbRAXWL9PC GQMDNQa/PW2cwTGHlnIamahVA1C0nVAkbmVYwaxalFZalFukYWeklFmekZJbmJmTm6hgZmerm pxcWJ6ak5iUnFesn5uZsYgQHFAAQ7GM+vDTzEKMnBpCTKK7RaK0KILyk/pTIjsTgjvqg0J7X4 EKMMB4eSBK/CA6CcYFFqempFWmYOMLRh0hIcPEoivDEgad7igsTc4sx0iNQpRkUpcd4AkIQAS CKjNA+uDRZPlxhlpYR5GYEOEeIpSC3KzSxBlX/FKM7BqCTMu/E+0BSezLwSuOmvgBYzAS3eZa 4BsrgkESEl1cCo8q5qwVZnvonVtlfN3NvSjvCUN4SkNK09uqx4gxynWtCcLXNU179L+pjbcu5 QuL5emezBzDulBgzmVam+n95Pfzdj05Wz1ZYr0077uE0r/yvMG+O3uHCWUUDqzTn5/7wWlZ3W tota/WryrJJ1hywery+ctTCoYvG/1Emyx++dOyd2rbjmo8c1JZbijERDLeai4kQAaAaoKqICA AA= X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-2.tower-21.messagelabs.com!1479205218!29416834!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 64088 invoked from network); 15 Nov 2016 10:20:18 -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; 15 Nov 2016 10:20:18 -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:17 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Tue, 15 Nov 2016 11:19:11 +0100 Message-Id: <20161115101913.10396-34-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 33/35] libxl/libxl_vtpm.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_vtpm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/libxl/libxl_vtpm.c b/tools/libxl/libxl_vtpm.c index 8588569..9ee8cce 100644 --- a/tools/libxl/libxl_vtpm.c +++ b/tools/libxl/libxl_vtpm.c @@ -129,7 +129,7 @@ static void libxl__device_vtpm_add(libxl__egc *egc, uint32_t domid, rc = libxl__device_exists(gc, t, device); if (rc < 0) goto out; if (rc == 1) { /* already exists in xenstore */ - LOG(ERROR, "device already exists in xenstore"); + LOGD(ERROR, domid, "device already exists in xenstore"); aodev->action = LIBXL__DEVICE_ACTION_ADD; /* for error message */ rc = ERROR_DEVICE_EXISTS; goto out; @@ -200,7 +200,7 @@ libxl_device_vtpm *libxl_device_vtpm_list(libxl_ctx *ctx, uint32_t domid, int *n tmp = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/uuid", libxl_path)); if (tmp) { if(libxl_uuid_from_string(&(vtpm->uuid), tmp)) { - LOG(ERROR, "%s/uuid is a malformed uuid?? (%s) Probably a bug!!\n", be_path, tmp); + LOGD(ERROR, domid, "%s/uuid is a malformed uuid?? (%s) Probably a bug!!\n", be_path, tmp); free(vtpms); return NULL; } @@ -259,11 +259,11 @@ int libxl_device_vtpm_getinfo(libxl_ctx *ctx, val = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/uuid", libxl_path)); if(val == NULL) { - LOG(ERROR, "%s/uuid does not exist!", vtpminfo->backend); + LOGD(ERROR, domid, "%s/uuid does not exist!", vtpminfo->backend); goto err; } if(libxl_uuid_from_string(&(vtpminfo->uuid), val)) { - LOG(ERROR, + LOGD(ERROR, domid, "%s/uuid is a malformed uuid?? (%s) Probably a bug!\n", vtpminfo->backend, val); goto err;