2018-02-20 15:48:15 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-07-01 18:13:32 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <pthread.h>
|
|
|
|
|
|
|
|
#include <osmocom/core/logging.h>
|
|
|
|
|
2018-02-20 15:48:15 +00:00
|
|
|
extern const struct log_info log_info;
|
|
|
|
|
|
|
|
/* Debug Areas of the code */
|
|
|
|
enum {
|
|
|
|
DMAIN,
|
2019-12-19 20:03:03 +00:00
|
|
|
DTRXCLK,
|
2018-12-04 15:37:24 +00:00
|
|
|
DTRXCTRL,
|
2019-12-19 20:03:03 +00:00
|
|
|
DTRXDDL,
|
|
|
|
DTRXDUL,
|
2018-08-17 17:55:38 +00:00
|
|
|
DDEV,
|
2018-04-25 10:17:10 +00:00
|
|
|
DLMS,
|
2018-02-20 15:48:15 +00:00
|
|
|
};
|
2019-07-01 18:13:32 +00:00
|
|
|
|
|
|
|
#define CLOGC(category, level, fmt, args...) do { \
|
|
|
|
LOGP(category, level, "[tid=%lu] " fmt, pthread_self(), ##args); \
|
|
|
|
} while(0)
|
|
|
|
|
|
|
|
#define CLOGCHAN(chan, category, level, fmt, args...) do { \
|
|
|
|
LOGP(category, level, "[tid=%lu][chan=%lu] " fmt, pthread_self(), chan, ##args); \
|
|
|
|
} while(0)
|