1 /*
2  * Copyright (c) 2019,2020 Linaro Limited
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <stdarg.h>
8 
9 #include "psa/error.h"
10 #include "psa/initial_attestation.h"
11 #include "psa/protected_storage.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 /**
18  * @brief Logs PSA response messages other than PSA_SUCCESS for debugging
19  *        purposes.
20  *
21  * @param status        The psa_status_t value to log.
22  * @param func_name     The name of the function that made this function call.
23  *
24  * @return Returns the psa_status_t value passed into the function.
25  */
26 psa_status_t al_psa_status(psa_status_t status, const char *func_name);
27 
28 /**
29  * @brief Calls 'log_process' in Zephyr to dump any queued log messages.
30  */
31 void al_dump_log(void);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36