[Cocci] prinkt specifiers
Tobin C. Harding
me at tobin.cc
Wed Oct 11 02:07:45 CEST 2017
Is it possible to craft a coccinelle script to find and replace calls (in the kernel) that are
printing pointers using %x.
Perhaps we could easily catch the calls that are casting the pointer within argument list, for example
pr_info("x: %llx\n", (unsigned long long int)ptr);
I'm happy to try and work out how to do it, just chasing a 'yes that is exactly the type of thing
cocci is good at' or a 'no, you are dreaming, perhaps <this tool> can do that'
More information about the Cocci