File: debug.h

package info (click to toggle)
osmo-trx 1.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,644 kB
  • sloc: cpp: 11,406; ansic: 4,697; makefile: 483; asm: 329; sh: 141; xml: 79
file content (23 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <stdbool.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,
	DCTR,
};

#define CLOGCHAN(chan, category, level, fmt, args...) do { \
	LOGP(category, level, "[chan=%zu] " fmt, chan, ##args);  \
} while(0)