Moved db_end_line after db_printf to eliminate forward reference and

shut up the compiler about prototype mismatch.
This commit is contained in:
Rodney W. Grimes 1993-09-09 23:03:24 +00:00
parent 356f5306c2
commit 572de91566
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=430

View File

@ -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
*
@ -160,16 +173,6 @@ db_print_position()
return (db_output_position);
}
/*
* End line if too long.
*/
void
db_end_line()
{
if (db_output_position >= db_max_width)
db_printf("\n");
}
/*
* Printing
*/
@ -195,6 +198,16 @@ kdbprintf(char *fmt, ...)
va_end(listp);
}
/*
* 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?)