summaryrefslogtreecommitdiff
path: root/src/print.c
blob: 33fbf5d659e8aa0578ca1b4277858b4e8c00d862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: GPL-3.0-only */

#include <print.h>

/* message print functions */
static int __print_severity = MSCP_SEVERITY_WARN;

void set_print_severity(int serverity)
{
	if (serverity < 0)
		__print_severity = -1; /* no print */
	__print_severity = serverity;
}

int get_print_severity()
{
	return __print_severity;
}