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

#include <osmocom/core/logging.h>

/* L1CTL related messages */
enum virtphy_log_cat {
	DL1C,
	DVIRPHY,
	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(char *cat_mask);
const char *getL1ctlPrimName(uint8_t type);