summaryrefslogtreecommitdiff
path: root/include/platform/debug.h
blob: 815b52d6ee74a9ab6bb51887086d17fc6df56596 (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
32
33
34
35
36
37
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (c) 2008 Travis Geiselbrecht
 * Copyright (c) 2026 Bradley Morgan <brads@mainlining.org>
 *
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
#ifndef __PLATFORM_DEBUG_H
#define __PLATFORM_DEBUG_H

#include <sys/types.h>
#include <stdarg.h>
#include <compiler.h>

#if defined(__cplusplus)
extern "C" {
#endif

int _dprintf(const char *fmt, ...) __PRINTFLIKE(1, 2);
int _dvprintf(const char *fmt, va_list ap);

void platform_halt(void);

#if defined(__cplusplus)
}
#endif

#endif