projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use M_IOBUF instead of M_TEMP for malloc'd buffers.
[unix-history]
/
sys
/
kern
/
subr_prf.c
diff --git
a/sys/kern/subr_prf.c
b/sys/kern/subr_prf.c
index
5ba8464
..
d691092
100644
(file)
--- a/
sys/kern/subr_prf.c
+++ b/
sys/kern/subr_prf.c
@@
-31,7
+31,7
@@
* SUCH DAMAGE.
*
* from: @(#)subr_prf.c 7.30 (Berkeley) 6/29/91
* SUCH DAMAGE.
*
* from: @(#)subr_prf.c 7.30 (Berkeley) 6/29/91
- * $Id: subr_prf.c,v 1.
4 1993/10/16 15:24:42 rgrimes
Exp $
+ * $Id: subr_prf.c,v 1.
5 1993/11/13 02:25:32 davidg
Exp $
*/
#include "param.h"
*/
#include "param.h"
@@
-129,7
+129,7
@@
panic(msg)
#endif
#include "ddb.h"
#if NDDB > 0
#endif
#include "ddb.h"
#if NDDB > 0
- Debugger ();
+ Debugger (
"panic"
);
#endif
boot(bootopt);
}
#endif
boot(bootopt);
}
@@
-139,7
+139,7
@@
panic(msg)
*/
void
tablefull(tab)
*/
void
tablefull(tab)
- char *tab;
+ c
onst c
har *tab;
{
log(LOG_ERR, "%s: table is full\n", tab);
{
log(LOG_ERR, "%s: table is full\n", tab);
@@
-285,12
+285,12
@@
logpri(level)
putchar('>', TOLOG, NULL);
}
putchar('>', TOLOG, NULL);
}
-int
+void
#ifdef __STDC__
addlog(const char *fmt, ...)
#else
addlog(fmt /*, va_alist */)
#ifdef __STDC__
addlog(const char *fmt, ...)
#else
addlog(fmt /*, va_alist */)
- char *fmt;
+ c
onst c
har *fmt;
#endif
{
register int s;
#endif
{
register int s;
@@
-307,7
+307,6
@@
addlog(fmt /*, va_alist */)
va_end(ap);
}
logwakeup();
va_end(ap);
}
logwakeup();
- return (0);
}
int consintr = 1; /* ok to handle console interrupts? */
}
int consintr = 1; /* ok to handle console interrupts? */
@@
-317,7
+316,7
@@
int
printf(const char *fmt, ...)
#else
printf(fmt /*, va_alist */)
printf(const char *fmt, ...)
#else
printf(fmt /*, va_alist */)
- char *fmt;
+ c
onst c
har *fmt;
#endif
{
va_list ap;
#endif
{
va_list ap;