aboutsummaryrefslogtreecommitdiff
path: root/include/apos/debug.h
blob: 021612dd19f7d8c05c5c7170e43b5818e50e6b63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef APOS_DEBUG_H
#define APOS_DEBUG_H

#include <apos/attrs.h>

#ifdef DEBUG
enum serial_dev_t {
	/* only the NS16550A and compatible at the moment */
	NS16550A,
};

void __fmt(1, 2) dbg(const char *fmt, ...);
void dbg_init(void *pt, enum serial_dev_t dev);

#else

#define dbg(...)
#define dbg_init(...)

#endif /* DEBUG */

#endif /* APOS_DEBUG_H */