From patchwork Fri Dec 2 15:08:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cedric Bosdonnat X-Patchwork-Id: 9458677 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 22C7460236 for ; Fri, 2 Dec 2016 15:11:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15F3A28542 for ; Fri, 2 Dec 2016 15:11:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AA8F28563; Fri, 2 Dec 2016 15:11:05 +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 5BAF628542 for ; Fri, 2 Dec 2016 15:11:04 +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 1cCpSs-0003bz-Dc; Fri, 02 Dec 2016 15:09:30 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCpSq-00038d-LH for xen-devel@lists.xen.org; Fri, 02 Dec 2016 15:09:28 +0000 Received: from [193.109.254.147] by server-5.bemta-6.messagelabs.com id 67/7D-19272-8AE81485; Fri, 02 Dec 2016 15:09:28 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeJIrShJLcpLzFFi42I53H6XVXdFn2O EwTYfiyUfF7M4MHoc3f2bKYAxijUzLym/IoE1Y/2fF0wFJwQqLnQbNzAu5uli5OQQEljCKPHl sAeIzSZgL9H15ygTiC0iIC1x7fNlRhCbWaBEoulcJzOILSzgJPHi6icWEJtFQFVi45Z+NhCbV 8BS4sLpPewgtoSAvMTC80fA5nACxR+0XGeE2GUh0XzjDgtEvaDEyZlPgGwOoPnqEuvnCUGskp do3jqbeQIj7ywkVbMQqmYhqVrAyLyKUaM4tagstUjXyEwvqSgzPaMkNzEzR9fQwEwvN7W4ODE 9NScxqVgvOT93EyMwmBiAYAfjmQWBhxglOZiURHlNcxwjhPiS8lMqMxKLM+KLSnNSiw8xynBw KEnwNvcC5QSLUtNTK9Iyc4BhDZOW4OBREuFVBUnzFhck5hZnpkOkTjEqSonzHgFJCIAkMkrz4 NpgsXSJUVZKmJcR6BAhnoLUotzMElT5V4ziHIxKwrz7QKbwZOaVwE1/BbSYCWhxx3V7kMUliQ gpqQbG9aft+z65iccd5nu2W/Kb62y+W3eEm720uT63TU56njZ7mWF8lcWcO8vikxeW75RyazN 34NJjzuGLz73U6rPm9bNdc8LcKzW/iM5esdjB8ub3wxyrmEXyHVIWa0RdEY/cvn5di9dNTbZa jUlLbLXrAx+3XL8eGq//IfT3KctTG47cPbA9mXO6EktxRqKhFnNRcSIA8mhBtKACAAA= X-Env-Sender: cbosdonnat@suse.com X-Msg-Ref: server-5.tower-27.messagelabs.com!1480691367!75439499!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 23566 invoked from network); 2 Dec 2016 15:09:27 -0000 Received: from smtp.nue.novell.com (HELO smtp.nue.novell.com) (195.135.221.5) by server-5.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 2 Dec 2016 15:09:27 -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:26 +0100 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: xen-devel@lists.xen.org Date: Fri, 2 Dec 2016 16:08:39 +0100 Message-Id: <20161202150841.31227-34-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 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 Acked-by: Wei Liu --- 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;