On Tue, 2008-06-24 at 21:04 -0700, Linus Torvalds wrote:=20 =20 t=20 We should probably start working on getting this fixed. In networking, we've gone through various incarnations of print_mac() which is similar to the sym() macro Paul proposed, and it turned out to be undesirable because of the way it interacts with static inlines that only optionally contain code at all, the print_mac() function call is still emitted by the compiler. People experimented with marking it __pure but that had other problems. It would be nice to be able to say u8 *eaddr; printk(... %M ..., eaddr); and get 03:45:67:89:ab:cd out of it, which avoids both the large string/code you get when doing it manually (printf("%2.x:...:%.2x", eaddr[0], ...) for which there are macros) and the "function call in hotpath even when debugging is disabled" problem I mentioned above. johannes
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Linus Torvalds | Linux 2.6.27-rc5 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| David Miller | Slow DOWN, please!!! |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Natalie Protasevich | [BUG] New Kernel Bugs |
