lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 3 Nov 2012 17:35:07 +0100 (CET) From: Julia Lawall <julia.lawall@...6.fr> To: walter harms <wharms@....de> cc: Julia Lawall <julia.lawall@...6.fr>, netdev@...r.kernel.org, kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org Subject: Re: [PATCH 10/16] drivers/net/ethernet/ibm/emac/mal.c: use WARN > While looking i have noticed that a lot of drivers define there private "assert" macro. > It is very similar to warn. > > (e.g.) > #define RTL819x_DEBUG > #ifdef RTL819x_DEBUG > #define assert(expr) \ > if (!(expr)) { \ > printk( "Assertion failed! %s,%s,%s,line=%d\n", \ > #expr,__FILE__,__FUNCTION__,__LINE__); \ > } WARN is more complicated. At least with the right debugging options turned on, it dumps the stack, via warn_slowpath_common. julia -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists