and fix bug in kprintn's buffer size
SCCS-vsn: sys/kern/subr_prf.c 7.24
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)subr_prf.c 7.23 (Berkeley) %G%
+ * @(#)subr_prf.c 7.24 (Berkeley) %G%
static void logpri __P((int level));
static void putchar __P((int ch, int flags, struct tty *tp));
static void logpri __P((int level));
static void putchar __P((int ch, int flags, struct tty *tp));
-static void kprintf __P((const char *fmt, int flags, struct tty *tp, va_list));
+void kprintf __P((const char *fmt, int flags, struct tty *tp, va_list));
static void kprintn __P((u_long num, int base, int flags, struct tty *tp));
extern cnputc(); /* standard console putc */
static void kprintn __P((u_long num, int base, int flags, struct tty *tp));
extern cnputc(); /* standard console putc */
*
* kprintf("prefix: %r, other stuff\n", fmt, ap);
*/
*
* kprintf("prefix: %r, other stuff\n", fmt, ap);
*/
kprintf(fmt, flags, tp, ap)
register const char *fmt;
int flags;
kprintf(fmt, flags, tp, ap)
register const char *fmt;
int flags;
struct tty *tp;
{
/* hold a long in base 8 */
struct tty *tp;
{
/* hold a long in base 8 */
- char *p, buf[(sizeof(long) * NBBY >> 3) + 1];
+ char *p, buf[(sizeof(long) * NBBY / 3) + 1];