28 lines
529 B
C
28 lines
529 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <pthread.h>
|
|
|
|
#include <osmocom/core/logging.h>
|
|
|
|
extern const struct log_info log_info;
|
|
|
|
/* Debug Areas of the code */
|
|
enum {
|
|
DMAIN,
|
|
DTRXCLK,
|
|
DTRXCTRL,
|
|
DTRXDDL,
|
|
DTRXDUL,
|
|
DDEV,
|
|
DDEVDRV,
|
|
};
|
|
|
|
#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)
|