mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-26 21:59:15 +01:00
7834b6ba22
This can be used by parsers (EDID, CTA, DisplayID, etc) to report errors. Signed-off-by: Simon Ser <contact@emersion.fr>
17 lines
372 B
C
17 lines
372 B
C
#include "log.h"
|
|
|
|
void
|
|
_di_logger_va_add_failure(struct di_logger *logger, const char fmt[], va_list args)
|
|
{
|
|
if (!logger->initialized) {
|
|
if (ftell(logger->f) > 0) {
|
|
fprintf(logger->f, "\n");
|
|
}
|
|
fprintf(logger->f, "%s:\n", logger->section);
|
|
logger->initialized = true;
|
|
}
|
|
|
|
fprintf(logger->f, " ");
|
|
vfprintf(logger->f, fmt, args);
|
|
fprintf(logger->f, "\n");
|
|
}
|