Add comments on error codes

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2022-02-08 11:15:26 +01:00
parent 48bae0295c
commit 340808ca67
4 changed files with 12 additions and 4 deletions

View File

@ -98,7 +98,9 @@ void print_buf( const char *title, unsigned char *buf, size_t len )
printf( "\n" );
}
/* Run an Mbed TLS function and bail out if it fails. */
/* Run an Mbed TLS function and bail out if it fails.
* A string description of the error code can be recovered with:
* programs/util/strerror <value> */
#define CHK( expr ) \
do \
{ \

View File

@ -77,7 +77,9 @@ void print_buf( const char *title, unsigned char *buf, size_t len )
printf( "\n" );
}
/* Run an Mbed TLS function and bail out if it fails. */
/* Run an Mbed TLS function and bail out if it fails.
* A string description of the error code can be recovered with:
* programs/util/strerror <value> */
#define CHK( expr ) \
do \
{ \

View File

@ -100,7 +100,9 @@ void print_buf( const char *title, uint8_t *buf, size_t len )
printf( "\n" );
}
/* Run a PSA function and bail out if it fails. */
/* Run a PSA function and bail out if it fails.
* The symbolic name of the error code can be recovered using:
* programs/psa/psa_consant_name status <value> */
#define PSA_CHECK( expr ) \
do \
{ \

View File

@ -79,7 +79,9 @@ void print_buf( const char *title, uint8_t *buf, size_t len )
printf( "\n" );
}
/* Run a PSA function and bail out if it fails. */
/* Run a PSA function and bail out if it fails.
* The symbolic name of the error code can be recovered using:
* programs/psa/psa_consant_name status <value> */
#define PSA_CHECK( expr ) \
do \
{ \