1 /* $NetBSD: rf_debugprint.c,v 1.10 2005/12/11 12:23:37 christos 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.10 2005/12/11 12:23:37 christos Exp $"); 38 39 #include <dev/raidframe/raidframevar.h> 40 41 #include "rf_debugprint.h" 42 #include "rf_general.h" 43 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) 47 { 48 printf(s, a1, a2, a3, a4, a5, a6, a7, a8); 49 } 50