xref: /netbsd/sys/dev/raidframe/rf_debugprint.c (revision c4a72b64)
1 /*	$NetBSD: rf_debugprint.c,v 1.6 2002/08/04 03:22:07 oster Exp $	*/
2 /*
3  * Copyright (c) 1995 Carnegie-Mellon University.
4  * All rights reserved.
5  *
6  * Author: Mark Holland
7  *
8  * Permission to use, copy, modify and distribute this software and
9  * its documentation is hereby granted, provided that both the copyright
10  * notice and this permission notice appear in all copies of the
11  * software, derivative works or modified versions, and any portions
12  * thereof, and that both notices appear in supporting documentation.
13  *
14  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
15  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
16  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17  *
18  * Carnegie Mellon requests users of this software to return to
19  *
20  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
21  *  School of Computer Science
22  *  Carnegie Mellon University
23  *  Pittsburgh PA 15213-3890
24  *
25  * any improvements or extensions that they make and grant Carnegie the
26  * rights to redistribute these changes.
27  */
28 
29 /*
30  * Code to do debug printfs. Calls to rf_debug_printf cause the corresponding
31  * information to be printed to a circular buffer rather than the screen.
32  * The point is to try and minimize the timing variations induced by the
33  * printfs, and to capture only the printf's immediately preceding a failure.
34  */
35 
36 #include <sys/cdefs.h>
37 __KERNEL_RCSID(0, "$NetBSD: rf_debugprint.c,v 1.6 2002/08/04 03:22:07 oster Exp $");
38 
39 #include <dev/raidframe/raidframevar.h>
40 
41 #include "rf_threadstuff.h"
42 #include "rf_debugprint.h"
43 #include "rf_general.h"
44 #include "rf_options.h"
45 
46 #include <sys/param.h>
47 
48 void
49 rf_debug_printf(s, a1, a2, a3, a4, a5, a6, a7, a8)
50 	char   *s;
51 	void   *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8;
52 {
53 	printf(s, a1, a2, a3, a4, a5, a6, a7, a8);
54 }
55