diff options
Diffstat (limited to 'ddb')
-rw-r--r-- | ddb/db_output.c | 3 | ||||
-rw-r--r-- | ddb/db_output.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ddb/db_output.c b/ddb/db_output.c index a34e8070..ded9fa96 100644 --- a/ddb/db_output.c +++ b/ddb/db_output.c @@ -203,7 +203,7 @@ void db_end_line(void) } /*VARARGS1*/ -void +int db_printf(const char *fmt, ...) { va_list listp; @@ -211,6 +211,7 @@ db_printf(const char *fmt, ...) va_start(listp, fmt); _doprnt(fmt, listp, db_id_putc, db_radix, 0); va_end(listp); + return 0; } #endif /* MACH_KDB */ diff --git a/ddb/db_output.h b/ddb/db_output.h index 497ae430..79201797 100644 --- a/ddb/db_output.h +++ b/ddb/db_output.h @@ -38,7 +38,7 @@ extern void db_force_whitespace(void); extern int db_print_position(void) __attribute__ ((pure)); extern void db_end_line(void); -extern void db_printf(const char *fmt, ...); +extern int db_printf(const char *fmt, ...); /* alternate name */ #define kdbprintf db_printf extern void db_putchar(int c); |