From patchwork Mon Mar 30 17:32:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 11466151 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A974C14B4 for ; Mon, 30 Mar 2020 17:32:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 922D62073B for ; Mon, 30 Mar 2020 17:32:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727905AbgC3RcX (ORCPT ); Mon, 30 Mar 2020 13:32:23 -0400 Received: from mga11.intel.com ([192.55.52.93]:16289 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727717AbgC3RcX (ORCPT ); Mon, 30 Mar 2020 13:32:23 -0400 IronPort-SDR: SUe4O35hIK6psJicj0jl8JORxXYRoisstpg52obxHqyKXxUjB+4k3/aJySREilXAN7Cd6MGeQW 1SdxC2g6r9LA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 10:32:22 -0700 IronPort-SDR: pIxZGps+yfwyY2jIqTdxCpqcUyuKaczZ9F873vX9Vm2C4xCy8CRMFGhPYID/4sEEJsA8TCH/Jb yNn1d3s5wz1Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,325,1580803200"; d="scan'208";a="239871755" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.202]) by fmsmga007.fm.intel.com with ESMTP; 30 Mar 2020 10:32:21 -0700 From: Sean Christopherson To: Jarkko Sakkinen Cc: linux-sgx@vger.kernel.org Subject: [PATCH for_v29] selftest/sgx: Remove printing of segments during enclave load Date: Mon, 30 Mar 2020 10:32:20 -0700 Message-Id: <20200330173220.28572-1-sean.j.christopherson@intel.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Sender: linux-sgx-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sgx@vger.kernel.org Don't print the enclave's segment information during load. Most failures are unlikely to be related to the loader/protections, and without context, e.g. printing what the numbers mean, the output is unhelpful and distracting. Signed-off-by: Sean Christopherson --- tools/testing/selftests/sgx/load.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/testing/selftests/sgx/load.c b/tools/testing/selftests/sgx/load.c index 35a2d7a47dd5..1a10b92adfa0 100644 --- a/tools/testing/selftests/sgx/load.c +++ b/tools/testing/selftests/sgx/load.c @@ -204,9 +204,6 @@ bool encl_load(const char *path, struct encl *encl) seg->offset = (phdr->p_offset & PAGE_MASK) - src_offset; seg->size = (phdr->p_filesz + PAGE_SIZE - 1) & PAGE_MASK; - printf("0x%016lx 0x%016lx 0x%02x\n", seg->offset, seg->size, - seg->prot); - j++; }