From cd0e0e6cee9684059c176df360261cb4b6a9cae4 Mon Sep 17 00:00:00 2001 From: rgrimes Date: Thu, 9 Sep 1993 23:03:24 +0000 Subject: Moved db_end_line after db_printf to eliminate forward reference and shut up the compiler about prototype mismatch. --- sys/ddb/db_output.c | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/sys/ddb/db_output.c b/sys/ddb/db_output.c index 82c7ce3..90c4903 100644 --- a/sys/ddb/db_output.c +++ b/sys/ddb/db_output.c @@ -34,6 +34,19 @@ /* * HISTORY * $Log: db_output.c,v $ + * Revision 1.2 1993/07/27 10:52:00 davidg + * * Applied fixes from Bruce Evans to fix COW bugs, >1MB kernel loading, + * profiling, and various protection checks that cause security holes + * and system crashes. + * * Changed min/max/bcmp/ffs/strlen to be static inline functions + * - included from cpufunc.h in via systm.h. This change + * improves performance in many parts of the kernel - up to 5% in the + * networking layer alone. Note that this requires systm.h to be included + * in any file that uses these functions otherwise it won't be able to + * find them during the load. + * * Fixed incorrect call to splx() in if_is.c + * * Fixed bogus variable assignment to splx() in if_ed.c + * * Revision 1.1.1.1 1993/06/12 14:57:37 rgrimes * Initial import, 0.1 + pk 0.2.4-B1 * @@ -161,16 +174,6 @@ db_print_position() } /* - * End line if too long. - */ -void -db_end_line() -{ - if (db_output_position >= db_max_width) - db_printf("\n"); -} - -/* * Printing */ extern int db_radix; @@ -196,6 +199,16 @@ kdbprintf(char *fmt, ...) } /* + * End line if too long. + */ +void +db_end_line() +{ + if (db_output_position >= db_max_width) + db_printf("\n"); +} + +/* * Put a number (base <= 16) in a buffer in reverse order; return an * optional length and a pointer to the NULL terminated (preceded?) * buffer. -- cgit v1.1