panic.c (38466) | panic.c (39441) |
---|---|
1/* | 1/* |
2 * $Id$ | 2 * $Id: panic.c,v 1.1.1.1 1998/08/21 03:17:41 msmith Exp $ |
3 * From: $NetBSD: panic.c,v 1.2 1997/03/22 01:48:36 thorpej Exp $ 4 */ 5 6/* 7 * Copyright (c) 1996 8 * Matthias Drochner. All rights reserved. 9 * 10 * Redistribution and use in source and binary forms, with or without --- 23 unchanged lines hidden (view full) --- 34 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35 * 36 */ 37 38 39#include <stand.h> 40#include <machine/stdarg.h> 41 | 3 * From: $NetBSD: panic.c,v 1.2 1997/03/22 01:48:36 thorpej Exp $ 4 */ 5 6/* 7 * Copyright (c) 1996 8 * Matthias Drochner. All rights reserved. 9 * 10 * Redistribution and use in source and binary forms, with or without --- 23 unchanged lines hidden (view full) --- 34 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35 * 36 */ 37 38 39#include <stand.h> 40#include <machine/stdarg.h> 41 |
42__dead void | 42void |
43panic(const char *fmt,...) 44{ 45 va_list ap; 46 47 printf("panic: "); 48 va_start(ap, fmt); 49 printf(fmt, ap); 50 printf("\n"); 51 va_end(ap); 52 printf("Press a key to reboot\n"); 53 getchar(); 54 55 exit(1); 56} | 43panic(const char *fmt,...) 44{ 45 va_list ap; 46 47 printf("panic: "); 48 va_start(ap, fmt); 49 printf(fmt, ap); 50 printf("\n"); 51 va_end(ap); 52 printf("Press a key to reboot\n"); 53 getchar(); 54 55 exit(1); 56} |