mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
Moved db_end_line after db_printf to eliminate forward reference and
shut up the compiler about prototype mismatch.
This commit is contained in:
parent
356f5306c2
commit
572de91566
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=430
@ -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?)
|
||||
|
Loading…
Reference in New Issue
Block a user