remove obsolete references to dos. remove unneeded passing of dosbase. expose an...
[AROS.git] / rom / kernel / bug.c
blobd7f5f7e1e543f6ac48373b127a987e2fe2f58df6
1 /*
2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/kernel.h>
9 #include <aros/libcall.h>
11 #include <stdarg.h>
12 #include <stdio.h>
14 #include <kernel_base.h>
15 #include <kernel_debug.h>
17 /*****************************************************************************
19 NAME */
20 #include <proto/kernel.h>
22 AROS_LH2(int, KrnBug,
24 /* SYNOPSIS */
25 AROS_LHA(const char *, format, A0),
26 AROS_LHA(va_list, args, A1),
28 /* LOCATION */
29 struct KernelBase *, KernelBase, 12, Kernel)
31 /* FUNCTION
32 Output a formatted string to low-level debug output stream.
34 The function supports the same set of formatting specifiers
35 as standard C printf() function.
37 INPUTS
38 format - A format string
39 args - A list of arguments
41 RESULT
42 Number of successfully printed characters
44 NOTES
46 EXAMPLE
48 BUGS
50 SEE ALSO
52 INTERNALS
53 During very early system startup this function can be called
54 directly with KernelBase set to NULL. Architecture-specific
55 implementations of this function need to take care of it.
57 ******************************************************************************/
59 AROS_LIBFUNC_INIT
61 return krnBug(format, args, KernelBase);
63 AROS_LIBFUNC_EXIT