File: log.c

package info (click to toggle)
dxvk 2.6%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 12,972 kB
  • sloc: cpp: 119,964; ansic: 76,058; sh: 518; python: 174; makefile: 45
file content (17 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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");
}