Thread (1 message) 1 message, 1 author, 2008-02-19

Re: [PATCH] net/8021q/vlan_dev.c - Use print_mac

From: David Miller <hidden>
Date: 2008-02-19 00:43:05
Also in: linux-wireless

From: Patrick McHardy <redacted>
Date: Mon, 18 Feb 2008 22:17:27 +0100
The way pr_debug is implemented it still results in two function
calls per packet since the compiler doesn't know that it doesn't
have visible side-effects besides modifying the (unused) buffer.
I confirmed this using codiff.
That's a bug.

I think we can fix this easily by using __attribute_const_
on the print_mac() declaration.  Let me play with that.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help