Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7302807imu; Thu, 31 Jan 2019 08:10:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN5fCJXFKe19alWXvk7yK15CDZuxYdVcOCwq8IuHuuRHBZwTUEd4GnHA+lt+1JjsT19pRhEs X-Received: by 2002:a63:3d49:: with SMTP id k70mr32071473pga.191.1548951050171; Thu, 31 Jan 2019 08:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548951050; cv=none; d=google.com; s=arc-20160816; b=eajAKbtwHRbRhlezSfOJtFBh7pDR5vBWhokjYaYvnUxySlz8Kjuhbjhg0xryxbdbz/ VLgUQNqWXDnbvENJqgxrb6cSvo5WnwKcZ0i6OFXWnF+t7GD8ntrusf+/n8U1h3aKGLtK qEP4eagdgd7H5rmwfm/YJoPRv+9O9GKDd4W7Lnexf/21CJ50XX+Q7y4VcvANDymsjzNK V9q9I2bkF5lWNcS5EA1UXm3resN2F4Ls6vr639dO48zJ+WqpVO2GyMFnY+tpbhHS6d9V JgdGQ3TRRIaA9sMCmjKnzRrDkh0inxbMAyLKWdL4bbwjUFbCXK5qLvpsMHoyZpKvqXAf 5XVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=43Vde5r9UZoh7zoDLNiHd6GkzFpUSi0ODYVRVFCDewk=; b=zZClFnQa5zeQlzjkz8nWHw9eVamaDn3p8dkbQbtTIUDfTl613GOJtcx95iPNr8lRYe BSnOTq59JhtfhpaI0Bi6Soh7yFIAkBPtV+8j6K4hYcignTCYPsN88RpJshmSzA+grty1 So6fZfkYVz8viRDyLRDhh8/jhMDX5qIiuquP7xeiZSikxq5wI0HFjb9kkltHZH3NGqT9 Mn19Isi7Bj1zW/Ldd446TFseWs2kxRD1J/xOQocj2FTawcmno/SG31NlClh2nb9KEiZV NyMRAvGRR8xJH3ZuNuPXQqSNZjMVCq4CXFvsd3OEr1cEkMQKT6tKpqi7wKVN2VguXl6Z dK1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g34si4861944pld.15.2019.01.31.08.10.32; Thu, 31 Jan 2019 08:10:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388102AbfAaQIn (ORCPT + 99 others); Thu, 31 Jan 2019 11:08:43 -0500 Received: from mga12.intel.com ([192.55.52.136]:62561 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727189AbfAaQIn (ORCPT ); Thu, 31 Jan 2019 11:08:43 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2019 08:08:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,545,1539673200"; d="scan'208";a="112663701" Received: from rkazants-mobl.ccr.corp.intel.com (HELO localhost) ([10.249.254.212]) by orsmga006.jf.intel.com with ESMTP; 31 Jan 2019 08:08:39 -0800 Date: Thu, 31 Jan 2019 18:08:38 +0200 From: Jarkko Sakkinen To: Jerry Snitselaar Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH 2/2] tpm: don't print error message in tpm_transmit_cmd when tpm still testing Message-ID: <20190131160838.GE5629@linux.intel.com> References: <20190130224333.20373-1-jsnitsel@redhat.com> <20190130224333.20373-2-jsnitsel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190130224333.20373-2-jsnitsel@redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 30, 2019 at 03:43:33PM -0700, Jerry Snitselaar wrote: > Currently tpm_transmit_cmd will print an error message if the tpm > returns something other than TPM2_RC_SUCCESS. This means that if the > tpm returns that it is testing an error message will be printed, and > this can cause confusion for the end user. So avoid printing the error > message if TPM2_RC_TESTING is the return code. > > Reviewed-by: Jarkko Sakkinen > Signed-off-by: Jerry Snitselaar Tags in wrong order but, but don't worry about it. I'll apply this patch and include to the next PR. Thanks. /Jarkko