Don't people ever learn?
We used to have inet_ntoa(). We got rid of the horrible crap, because it
is neither thread-safe nor even able to be used multiple times for
printk except with ugly hacks like yours.
What's the advantage of using %s + inet_ntoa() when compared to using
the very straightforward %u.%u.%u.%u + NIP_QUAD()? There is none.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/