From patchwork Thu Nov 17 17:36:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9434863 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 B238C6047D for ; Thu, 17 Nov 2016 17:39:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A60ED2939E for ; Thu, 17 Nov 2016 17:39:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B32529689; Thu, 17 Nov 2016 17:39:22 +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 530712939E for ; Thu, 17 Nov 2016 17:39:22 +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 1c7QcW-0000lL-AS; Thu, 17 Nov 2016 17:37:08 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7QcV-0000gw-3M for xen-devel@lists.xen.org; Thu, 17 Nov 2016 17:37:07 +0000 Received: from [85.158.143.35] by server-11.bemta-6.messagelabs.com id 43/CC-21331-2CAED285; Thu, 17 Nov 2016 17:37:06 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeJIrShJLcpLzFFi42I53H6XVffQK90 Ig+XHWC2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oztrR1sBQsEKh4c6WduYPzP3cXIxSEksIRR Yv6nf6xdjJwcbAL2El1/jjKB2CIC0hLXPl9mBLGZBUok9j7tALOFBZwkXlz9xAJiswioSrw4s Q+ol4ODV8BCovWxFEhYQkBe4sLVU2AlnEDhA4fPMYPYQgLmEm/eLAAbzysgKHFy5hMWkFZmAX WJ9fOEIDbJSzRvnc08gZF3FpKqWQhVs5BULWBkXsWoUZxaVJZapGtkqpdUlJmeUZKbmJmja2h gppebWlycmJ6ak5hUrJecn7uJERhQDECwg3HVgsBDjJIcTEqivMwvdSOE+JLyUyozEosz4otK c1KLDzHKcHAoSfC+AckJFqWmp1akZeYAQxsmLcHBoyTCKwmS5i0uSMwtzkyHSJ1iVJQS5z0Nk hAASWSU5sG1weLpEqOslDAvI9AhQjwFqUW5mSWo8q8YxTkYlYR5F4FM4cnMK4Gb/gpoMRPQ4j 0COiCLSxIRUlINjCvXCE7V2zW1d3HzvskL7p9Q49o8a0qLe34W74U1j6Qeu08yfLFtK2O9lMe 7x9/kO7fNlHrEsm9bqRg3b6HQr2//bpwTV1kR/fBUSYB48FO16mrm9Z81d5g8l3W+9T36T0vl G3ce8w4RvucPTqsl7RLK5Tv6jPEOQ+VD7qT75w74WlwoO7bu4islluKMREMt5qLiRACXu0BQo gIAAA== X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-2.tower-21.messagelabs.com!1479404225!29937550!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 21278 invoked from network); 17 Nov 2016 17:37:05 -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; 17 Nov 2016 17:37:05 -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); Thu, 17 Nov 2016 18:37:04 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Thu, 17 Nov 2016 18:36:15 +0100 Message-Id: <20161117173617.6697-34-cbosdonnat@suse.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161117173617.6697-1-cbosdonnat@suse.com> References: <20161117173617.6697-1-cbosdonnat@suse.com> MIME-Version: 1.0 Cc: Wei Liu , Ian Jackson , Cedric Bosdonnat Subject: [Xen-devel] [PATCH v2 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: Cedric 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;