ADAS_PRINT()

Updated: April 19, 2023

Add a debug entry in the ADAS library logs

Synopsis:

#include <adas/adas_log.h>
#define ADAS_PRINT(format,
                   ...) \ adas_log_print(stdout,
                   "%.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.