mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:12:43 +00:00 
			
		
		
		
	 77486a0d08
			
		
	
	
		77486a0d08
		
	
	
	
	
		
			
			We don't actually need the va_list and other stdarg definitions in the kernel, because we actually don't use the "pure" printf interface in any kernel code at all, but we retain the snprintf declaration because the libstdc++ library still need it to be declared and extern'ed.
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			506 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			506 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/StringView.h>
 | |
| #include <AK/Types.h>
 | |
| 
 | |
| extern "C" {
 | |
| void dbgputstr(char const*, size_t);
 | |
| void kernelputstr(char const*, size_t);
 | |
| void kernelcriticalputstr(char const*, size_t);
 | |
| void dbgputchar(char);
 | |
| void kernelearlyputstr(char const*, size_t);
 | |
| void set_serial_debug_enabled(bool desired_state);
 | |
| bool is_serial_debug_enabled();
 | |
| }
 | |
| 
 | |
| void dbgputstr(StringView view);
 |