Add comments on error codes
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
48bae0295c
commit
340808ca67
@ -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 \
|
||||
{ \
|
||||
|
@ -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 \
|
||||
{ \
|
||||
|
@ -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 \
|
||||
{ \
|
||||
|
@ -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 \
|
||||
{ \
|
||||
|
Loading…
Reference in New Issue
Block a user