Explorar o código

[Pal/Linux-SGX] Make message on thread allocation failure more friendly

Isaku Yamahata %!s(int64=6) %!d(string=hai) anos
pai
achega
848321909d
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Pal/src/host/Linux-SGX/sgx_thread.c

+ 4 - 1
Pal/src/host/Linux-SGX/sgx_thread.c

@@ -68,7 +68,10 @@ static void * thread_start (void * arg)
     current_enclave = arg;
 
     if (!current_tcs) {
-        SGX_DBG(DBG_E, "Cannot attach to any TCS!\n");
+        SGX_DBG(DBG_E,
+                "There are no available TCS pages left for a new thread!\n"
+                "Please try to increase sgx.thread_num in the manifest.\n"
+                "The current value is %d\n", enclave_thread_num);
         return NULL;
     }