summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_output.c14
-rw-r--r--ddb/db_output.h6
2 files changed, 6 insertions, 14 deletions
diff --git a/ddb/db_output.c b/ddb/db_output.c
index d7e416d..adaf249 100644
--- a/ddb/db_output.c
+++ b/ddb/db_output.c
@@ -35,8 +35,8 @@
* Printf and character output for debugger.
*/
+#include <stdarg.h>
#include <mach/boolean.h>
-#include <sys/varargs.h>
#include <machine/db_machdep.h>
#include <ddb/db_lex.h>
#include <ddb/db_output.h>
@@ -209,16 +209,14 @@ extern void _doprnt();
/*VARARGS1*/
void
-db_printf( fmt, va_alist)
- char * fmt;
- va_dcl
+db_printf(const char *fmt, ...)
{
va_list listp;
#ifdef db_printf_enter
db_printf_enter(); /* optional multiP serialization */
#endif
- va_start(listp);
+ va_start(listp, fmt);
_doprnt(fmt, &listp, db_id_putc, db_radix, 0);
va_end(listp);
}
@@ -227,12 +225,10 @@ db_printf( fmt, va_alist)
/*VARARGS1*/
void
-kdbprintf(fmt, va_alist)
- char * fmt;
- va_dcl
+kdbprintf(const char *fmt, ...)
{
va_list listp;
- va_start(listp);
+ va_start(listp, fmt);
_doprnt(fmt, &listp, db_id_putc, db_radix, 0);
va_end(listp);
}
diff --git a/ddb/db_output.h b/ddb/db_output.h
index a3f0de0..b19f64d 100644
--- a/ddb/db_output.h
+++ b/ddb/db_output.h
@@ -35,10 +35,6 @@
extern void db_force_whitespace();
extern int db_print_position();
extern void db_end_line();
-#if 1
-extern void db_printf();
-#else
-extern void db_printf( char *fmt, ...);
-#endif
+extern void db_printf( const char *fmt, ...);