summaryrefslogtreecommitdiffstats
path: root/src/host/virt_phy/include/osmocom/bb/virtphy/logging.h
blob: 1727453e81374ec41e90d5a9dd4cd8cc08b652b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <osmocom/core/logging.h>

/* L1CTL related messages */
enum virtphy_log_cat {
	DL1C,
	DL1P,
	DVIRPHY,
	DGPRS,
	DMAIN
};

#define LOGPMS(ss, lvl, ms, fmt, args ...)	LOGP(ss, lvl, "MS %04u: " fmt, ms->nr, ## args)
#define DEBUGPMS(ss, ms, fmt, args ...)		DEBUGP(ss, "MS %04u: " fmt, ms->nr, ## args)

extern const struct log_info ms_log_info;

int ms_log_init(void *ctx, const char *cat_mask);
const char *getL1ctlPrimName(uint8_t type);