ADAS_ERROR()

Updated: April 19, 2023

Add an error entry in the ADAS library logs

Synopsis:

#include <adas/adas_log.h>
#define ADAS_ERROR(format,
                   ...) \ adas_log_print(stderr,
                   "%.15s %.3d: " format,
                   strrchr(__FILE__,
                   '/') ? \ strrchr(__FILE__,
                   '/') + 1 : __FILE__,
                   __LINE__,
                   ##__VA_ARGS__)

Arguments:

format
Format string that controls the format of the output.

Library:

libadas

Description:

The macro works similar to a printf() where a format string is provided and variable-length arguments provide the values to set in the format string.