From 1895f3463d92139260d56b1d4e3fa2bfbeea07f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kowalczyk?= Date: Tue, 21 Jul 2020 02:48:26 +0200 Subject: [PATCH] [PAL] protected files: Remove too-noisy debug prints SGX_DBG macro disrespects debug logging settings from the manifest, but fixing this properly is a much bigger task (the whole logging subsystem should be redesigned). --- Pal/src/host/Linux-SGX/db_files.c | 3 --- Pal/src/host/Linux-SGX/enclave_pf.c | 1 - 2 files changed, 4 deletions(-) diff --git a/Pal/src/host/Linux-SGX/db_files.c b/Pal/src/host/Linux-SGX/db_files.c index 077b44b1..7e934a9e 100644 --- a/Pal/src/host/Linux-SGX/db_files.c +++ b/Pal/src/host/Linux-SGX/db_files.c @@ -34,9 +34,6 @@ static int file_open(PAL_HANDLE* handle, const char* type, const char* uri, int if (strcmp_static(type, URI_TYPE_FILE)) return -PAL_ERROR_INVAL; - SGX_DBG(DBG_D, "file_open: uri %s, access 0x%x, share 0x%x, create 0x%x, options 0x%x\n", - uri, access, share, create, options); - /* prepare the file handle */ size_t len = strlen(uri) + 1; PAL_HANDLE hdl = calloc(1, HANDLE_SIZE(file) + len); diff --git a/Pal/src/host/Linux-SGX/enclave_pf.c b/Pal/src/host/Linux-SGX/enclave_pf.c index 9d4ddddb..eda1c25b 100644 --- a/Pal/src/host/Linux-SGX/enclave_pf.c +++ b/Pal/src/host/Linux-SGX/enclave_pf.c @@ -220,7 +220,6 @@ struct protected_file* get_protected_file(const char* path) { } out: - SGX_DBG(DBG_D, "get_pf(%s) = %p\n", path, pf); return pf; }