--- Gnu-Mach/ddb/db_output.c 2020/09/02 04:36:57 1.1 +++ Gnu-Mach/ddb/db_output.c 2020/09/02 04:43:15 1.1.1.2 @@ -1,25 +1,25 @@ -/* +/* * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. - * + * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. - * + * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * + * * Carnegie Mellon requests users of this software to return to - * + * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 - * + * * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. */ @@ -35,8 +35,8 @@ * Printf and character output for debugger. */ +#include #include -#include #include #include #include @@ -57,7 +57,7 @@ #ifndef DB_MAX_LINE #define DB_MAX_LINE 24 /* maximum line */ #define DB_MAX_WIDTH 80 /* maximum width */ -#endif DB_MAX_LINE +#endif /* DB_MAX_LINE */ #define DB_MIN_MAX_WIDTH 20 /* minimum max width */ #define DB_MIN_MAX_LINE 3 /* minimum max line */ @@ -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,14 +225,12 @@ 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); } -#endif MACH_KDB +#endif /* MACH_KDB */