Deleted Added
full compact
kern_shutdown.c (25164) kern_shutdown.c (26100)
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 * @(#)kern_shutdown.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 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
39 * $Id: kern_shutdown.c,v 1.13 1997/02/22 09:39:10 peter Exp $
39 * $Id: kern_shutdown.c,v 1.14 1997/04/26 11:46:14 peter Exp $
40 */
41
42#include "opt_ddb.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/reboot.h>
47#include <sys/msgbuf.h>

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

371 va_list ap;
372
373 bootopt = RB_AUTOBOOT | RB_DUMP;
374 if (panicstr)
375 bootopt |= RB_NOSYNC;
376 else
377 panicstr = fmt;
378
40 */
41
42#include "opt_ddb.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/reboot.h>
47#include <sys/msgbuf.h>

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

371 va_list ap;
372
373 bootopt = RB_AUTOBOOT | RB_DUMP;
374 if (panicstr)
375 bootopt |= RB_NOSYNC;
376 else
377 panicstr = fmt;
378
379#ifdef SMP
380 printf("panic (cpu#%d): ", cpunumber());
381#else
382 printf("panic: ");
379 printf("panic: ");
383#endif
384 va_start(ap, fmt);
385 vprintf(fmt, ap);
386 va_end(ap);
387 printf("\n");
380 va_start(ap, fmt);
381 vprintf(fmt, ap);
382 va_end(ap);
383 printf("\n");
384#ifdef SMP
385 printf(" cpu#%d\n", cpunumber());
386#endif
388
389#if defined(DDB)
390 if (debugger_on_panic)
391 Debugger ("panic");
392#endif
393 boot(bootopt);
394}
395

--- 75 unchanged lines hidden ---
387
388#if defined(DDB)
389 if (debugger_on_panic)
390 Debugger ("panic");
391#endif
392 boot(bootopt);
393}
394

--- 75 unchanged lines hidden ---