xref: /linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/inc/dml2_debug.c (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1 // SPDX-License-Identifier: MIT
2 //
3 // Copyright 2024 Advanced Micro Devices, Inc.
4 
5 #include "dml2_debug.h"
6 
dml2_printf(const char * format,...)7 int dml2_printf(const char *format, ...)
8 {
9 #ifdef _DEBUG
10 #ifdef _DEBUG_PRINTS
11 	int result;
12 	va_list args;
13 	va_start(args, format);
14 
15 	result = vprintf(format, args);
16 
17 	va_end(args);
18 
19 	return result;
20 #else
21 	return 0;
22 #endif
23 #else
24 	return 0;
25 #endif
26 }
27 
dml2_assert(int condition)28 void dml2_assert(int condition)
29 {
30 	//ASSERT(condition);
31 }
32