]> git.pld-linux.org Git - packages/kernel.git/blob - htb_killdbg_2421.diff
- added description of djurban's branch
[packages/kernel.git] / htb_killdbg_2421.diff
1 --- linux-2.4/net/sched/sch_htb.c       2003/06/18 19:55:49     1.20
2 +++ linux-2.4/net/sched/sch_htb.c       2003/07/05 10:37:51
3 @@ -98,7 +98,8 @@
4   from LSB
5   */
6  #ifdef HTB_DEBUG
7 -#define HTB_DBG(S,L,FMT,ARG...) if (((q->debug>>(2*S))&3) >= L) \
8 +#define HTB_DBG_COND(S,L) (((q->debug>>(2*S))&3) >= L)
9 +#define HTB_DBG(S,L,FMT,ARG...) if (HTB_DBG_COND(S,L)) \
10         printk(KERN_DEBUG FMT,##ARG)
11  #define HTB_CHCL(cl) BUG_TRAP((cl)->magic == HTB_CMAGIC)
12  #define HTB_PASSQ q,
13 @@ -114,6 +115,7 @@
14                 rb_erase(N,R); \
15                 (N)->rb_color = -1; } while (0)
16  #else
17 +#define HTB_DBG_COND(S,L) (0)
18  #define HTB_DBG(S,L,FMT,ARG...)
19  #define HTB_PASSQ
20  #define HTB_ARGQ
21 @@ -1202,7 +1204,8 @@ static int htb_dump(struct Qdisc *sch, s
22         gopt.direct_pkts = q->direct_pkts;
23  
24  #ifdef HTB_DEBUG
25 -       htb_debug_dump(q);
26 +       if (HTB_DBG_COND(0,2))
27 +               htb_debug_dump(q);
28  #endif
29         gopt.version = HTB_VER;
30         gopt.rate2quantum = q->rate2quantum;
This page took 0.024083 seconds and 3 git commands to generate.