Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / dev / raidframe / rf_debugprint.c
blob2caecf938f6bdc7181ea8fff39f7239f712032ad
1 /* $NetBSD: rf_debugprint.c,v 1.6.6.4 2005/03/04 16:50:06 skrll Exp $ */
2 /*
3 * Copyright (c) 1995 Carnegie-Mellon University.
4 * All rights reserved.
6 * Author: Mark Holland
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.
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.
18 * Carnegie Mellon requests users of this software to return to
20 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
21 * School of Computer Science
22 * Carnegie Mellon University
23 * Pittsburgh PA 15213-3890
25 * any improvements or extensions that they make and grant Carnegie the
26 * rights to redistribute these changes.
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.
36 #include <sys/cdefs.h>
37 __KERNEL_RCSID(0, "$NetBSD: rf_debugprint.c,v 1.6.6.4 2005/03/04 16:50:06 skrll Exp $");
39 #include <dev/raidframe/raidframevar.h>
41 #include "rf_debugprint.h"
42 #include "rf_general.h"
44 void
45 rf_debug_printf(char *s, void *a1, void *a2, void *a3, void *a4,
46 void *a5, void *a6, void *a7, void *a8)
48 printf(s, a1, a2, a3, a4, a5, a6, a7, a8);