Re: ipv6/ip6_fib.c DEBUG question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




check the BUG_TRAP Macro , its something like this -

#define BUG_TRAP(x) if (!(x)) {...}


----------------------------------------------------------------
Sourajeet Mohanty
Software Engineer
Communications and Embedded Systems
L&T Infotech Ltd., Bangalore
-----------------------------------------------------------------


                                                                                                              
                      "Randy.Dunlap"                                                                          
                      <rddunlap@osdl.org>         To:       linux-net@vger.kernel.org                         
                      Sent by:                    cc:                                                         
                      linux-net-owner@vger        Subject:  ipv6/ip6_fib.c DEBUG question                     
                      .kernel.org                                                                             
                                                                                                              
                                                                                                              
                      06/05/2003 10:03 PM                                                                     
                                                                                                              
                                                                                                              





What/why this?

#if RT6_DEBUG >= 2
             if (rt->u.dst.obsolete>0) {
                         BUG_TRAP(fn==NULL || rt->u.dst.obsolete<=0);
                         return -ENOENT;
             }
#endif

rt->u.dst.obsolete cannot be both > 0 and <= 0 !?!
can it?

--
~Randy
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html





-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux