]>
git.ipfire.org Git - thirdparty/systemd.git/blob - log.c
1 /*-*- Mode: C; c-basic-offset: 8 -*-*/
17 const char *format
, ...) {
19 const char *prefix
, *suffix
;
22 if (LOG_PRI(level
) <= LOG_ERR
) {
23 prefix
= "\x1B[1;31m";
32 fprintf(stderr
, "(%s:%u) %s", file
, line
, prefix
);
33 vfprintf(stderr
, format
, ap
);
34 fprintf(stderr
, "%s\n", suffix
);