Deleted Added
full compact
db_output.c (160312) db_output.c (163134)
1/*-
2 * Mach Operating System
3 * Copyright (c) 1991,1990 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the

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

28 * Date: 7/90
29 */
30
31/*
32 * Printf and character output for debugger.
33 */
34
35#include <sys/cdefs.h>
1/*-
2 * Mach Operating System
3 * Copyright (c) 1991,1990 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the

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

28 * Date: 7/90
29 */
30
31/*
32 * Printf and character output for debugger.
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/ddb/db_output.c 160312 2006-07-12 21:22:44Z jhb $");
36__FBSDID("$FreeBSD: head/sys/ddb/db_output.c 163134 2006-10-08 18:15:08Z bde $");
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/cons.h>
41#include <sys/kdb.h>
42#include <sys/kernel.h>
43#include <sys/sysctl.h>
44

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

299 kvprintf (fmt, db_putchar, NULL, db_radix, listp);
300 va_end(listp);
301}
302
303/*
304 * End line if too long.
305 */
306void
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/cons.h>
41#include <sys/kdb.h>
42#include <sys/kernel.h>
43#include <sys/sysctl.h>
44

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

299 kvprintf (fmt, db_putchar, NULL, db_radix, listp);
300 va_end(listp);
301}
302
303/*
304 * End line if too long.
305 */
306void
307db_end_line()
307db_end_line(int field_width)
308{
308{
309 if (db_output_position >= db_max_width)
309 if (db_output_position + field_width > db_max_width)
310 db_printf("\n");
311}
310 db_printf("\n");
311}