[TG3]: Set minimal hw interrupt mitigation.
[linux-2.6/verdex.git] / drivers / isdn / sc / debug.c
blob1a992a75868b04e1f8283084f9ec652e7dbc8eda
1 /* $Id: debug.c,v 1.5.6.1 2001/09/23 22:24:59 kai Exp $
3 * Copyright (C) 1996 SpellCaster Telecommunications Inc.
5 * This software may be used and distributed according to the terms
6 * of the GNU General Public License, incorporated herein by reference.
8 * For more information, please contact gpl-info@spellcast.com or write:
10 * SpellCaster Telecommunications Inc.
11 * 5621 Finch Avenue East, Unit #3
12 * Scarborough, Ontario Canada
13 * M1B 2T9
14 * +1 (416) 297-8565
15 * +1 (416) 297-6433 Facsimile
18 #include <linux/kernel.h>
19 #include <linux/string.h>
21 int dbg_level = 0;
22 static char dbg_funcname[255];
24 void dbg_endfunc(void)
26 if (dbg_level) {
27 printk("<-- Leaving function %s\n", dbg_funcname);
28 strcpy(dbg_funcname, "");
32 void dbg_func(char *func)
34 strcpy(dbg_funcname, func);
35 if(dbg_level)
36 printk("--> Entering function %s\n", dbg_funcname);
39 inline void pullphone(char *dn, char *str)
41 int i = 0;
43 while(dn[i] != ',')
44 str[i] = dn[i], i++;
45 str[i] = 0x0;