summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/inc/dml2_debug.c
blob: e9b8e10695ae0e219ab708c06a6bf94b8d1468a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// SPDX-License-Identifier: MIT
//
// Copyright 2024 Advanced Micro Devices, Inc.

#include "dml2_debug.h"

int dml2_printf(const char *format, ...)
{
#ifdef _DEBUG
#ifdef _DEBUG_PRINTS
	int result;
	va_list args;
	va_start(args, format);

	result = vprintf(format, args);

	va_end(args);

	return result;
#else
	return 0;
#endif
#else
	return 0;
#endif
}

void dml2_assert(int condition)
{
	//ASSERT(condition);
}