2 * SPDX-License-Identifier: MIT
4 * Copyright (c) 2016 Philippe Proulx <pproulx@efficios.com>
6 * Define PRINT_PREFIX and PRINT_ERR_STREAM, then include this file.
9 #ifndef CTF_BTR_PRINT_H
10 #define CTF_BTR_PRINT_H
13 #include "common/macros.h"
15 #define PERR(fmt, ...) \
17 if (PRINT_ERR_STREAM) { \
18 fprintf(PRINT_ERR_STREAM, \
19 "Error: " PRINT_PREFIX ": " fmt, \
24 #define PWARN(fmt, ...) \
26 if (PRINT_ERR_STREAM) { \
27 fprintf(PRINT_ERR_STREAM, \
28 "Warning: " PRINT_PREFIX ": " fmt, \
33 #define PDBG(fmt, ...) \
35 if (babeltrace_debug) { \
37 "Debug: " PRINT_PREFIX ": " fmt, \
42 #endif /* CTF_BTR_PRINT_H */
This page took 0.034448 seconds and 4 git commands to generate.