summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_output.c
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1993-09-09 23:03:24 +0000
committerrgrimes <rgrimes@FreeBSD.org>1993-09-09 23:03:24 +0000
commitcd0e0e6cee9684059c176df360261cb4b6a9cae4 (patch)
tree22f21c0632c5b17e7ffa72fe13ce116ed7bcdaeb /sys/ddb/db_output.c
parent3e808869c39aa7fea2918dee242b6429d2b659f1 (diff)
downloadFreeBSD-src-cd0e0e6cee9684059c176df360261cb4b6a9cae4.zip
FreeBSD-src-cd0e0e6cee9684059c176df360261cb4b6a9cae4.tar.gz
Moved db_end_line after db_printf to eliminate forward reference and
shut up the compiler about prototype mismatch.
Diffstat (limited to 'sys/ddb/db_output.c')
-rw-r--r--sys/ddb/db_output.c33
1 files 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.
OpenPOWER on IntegriCloud