Deleted Added
full compact
subr_prf.c (10225) subr_prf.c (12819)
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94
39 * $Id: subr_prf.c,v 1.17 1995/08/07 08:40:49 davidg Exp $
39 * $Id: subr_prf.c,v 1.18 1995/08/24 12:54:11 davidg Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/reboot.h>
45#include <sys/msgbuf.h>
46#include <sys/proc.h>
47#include <sys/vnode.h>

--- 15 unchanged lines hidden (view full) ---

63
64
65#define TOCONS 0x01
66#define TOTTY 0x02
67#define TOLOG 0x04
68
69struct tty *constty; /* pointer to console "window" tty */
70
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/reboot.h>
45#include <sys/msgbuf.h>
46#include <sys/proc.h>
47#include <sys/vnode.h>

--- 15 unchanged lines hidden (view full) ---

63
64
65#define TOCONS 0x01
66#define TOTTY 0x02
67#define TOLOG 0x04
68
69struct tty *constty; /* pointer to console "window" tty */
70
71void (*v_putc)(int) = cnputc; /* routine to putc on virtual console */
71static void (*v_putc)(int) = cnputc; /* routine to putc on virtual console */
72
72
73void logpri __P((int level));
73static void logpri __P((int level));
74static void putchar __P((int ch, int flags, struct tty *tp));
75static char *ksprintn __P((u_long num, int base, int *len));
76
74static void putchar __P((int ch, int flags, struct tty *tp));
75static char *ksprintn __P((u_long num, int base, int *len));
76
77int consintr = 1; /* Ok to handle console interrupts? */
77static int consintr = 1; /* Ok to handle console interrupts? */
78
79/*
80 * Variable panicstr contains argument to first call to panic; used as flag
81 * to indicate that the kernel has already called panic.
82 */
83const char *panicstr;
84
85/*

--- 171 unchanged lines hidden (view full) ---

257 if (!log_open) {
258 va_start(ap, fmt);
259 kprintf(fmt, TOCONS, NULL, ap);
260 va_end(ap);
261 }
262 logwakeup();
263}
264
78
79/*
80 * Variable panicstr contains argument to first call to panic; used as flag
81 * to indicate that the kernel has already called panic.
82 */
83const char *panicstr;
84
85/*

--- 171 unchanged lines hidden (view full) ---

257 if (!log_open) {
258 va_start(ap, fmt);
259 kprintf(fmt, TOCONS, NULL, ap);
260 va_end(ap);
261 }
262 logwakeup();
263}
264
265void
265static void
266logpri(level)
267 int level;
268{
269 register char *p;
270
271 putchar('<', TOLOG, NULL);
272 for (p = ksprintn((u_long)level, 10, NULL); *p;)
273 putchar(*p--, TOLOG, NULL);

--- 350 unchanged lines hidden ---
266logpri(level)
267 int level;
268{
269 register char *p;
270
271 putchar('<', TOLOG, NULL);
272 for (p = ksprintn((u_long)level, 10, NULL); *p;)
273 putchar(*p--, TOLOG, NULL);

--- 350 unchanged lines hidden ---