openMMC
Open Source Modular MMC for AMCs
|
Error handling functions and codes. More...
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | PRINT_ERR_LINE(e) printf("%s line %d: %s\n", __FILE__, __LINE__, get_error_str(e)) |
Print the file name, line number and error description. | |
Enumerations | |
enum | mmc_err { MMC_OK , MMC_OOM_ERR , MMC_IO_ERR , MMC_INVALID_ARG_ERR , MMC_TIMEOUT_ERR , MMC_RESOURCE_ERR , MMC_UNKNOWN_ERR } |
Functions | |
const char * | get_error_str (mmc_err e) |
Get the corresponding string for an error code. | |
Error handling functions and codes.
#define PRINT_ERR_LINE | ( | e | ) | printf("%s line %d: %s\n", __FILE__, __LINE__, get_error_str(e)) |
Print the file name, line number and error description.
[in] | e | Error code |
enum mmc_err |
const char * get_error_str | ( | mmc_err | e | ) |
Get the corresponding string for an error code.
[in] | e | Error code |