MCPcopy Create free account
hub / github.com/conflow-dev/ConFlow / print_error_message

Function print_error_message

sgx_tf_ops/App/App.cpp:108–124  ·  view source on GitHub ↗

Check error conditions for loading enclave */

Source from the content-addressed store, hash-verified

106
107/* Check error conditions for loading enclave */
108void print_error_message(sgx_status_t ret)
109{
110 size_t idx = 0;
111 size_t ttl = sizeof sgx_errlist/sizeof sgx_errlist[0];
112
113 for (idx = 0; idx < ttl; idx++) {
114 if(ret == sgx_errlist[idx].err) {
115 if(NULL != sgx_errlist[idx].sug)
116 printf("Info: %s\n", sgx_errlist[idx].sug);
117 printf("Error: %s\n", sgx_errlist[idx].msg);
118 break;
119 }
120 }
121
122 if (idx == ttl)
123 printf("Error code is 0x%X. Please refer to the \"Intel SGX SDK Developer Reference\" for more details.\n", ret);
124}
125
126
127unsigned long int initialize_enclave()

Callers 15

initialize_enclaveFunction · 0.85
destroy_enclaveFunction · 0.85
ceshiFunction · 0.85
ceshi_gradFunction · 0.85
encrypt1Function · 0.85
decryptFunction · 0.85
reluFunction · 0.85
sigmoidFunction · 0.85
loglossFunction · 0.85
relu_gradFunction · 0.85
sigmoid_gradFunction · 0.85
logloss_gradFunction · 0.85

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected