Kernel Modules. How can I modify printk severity based on a passed parameter?
<p>I have a kernel module that's working just fine. I'm able to pass parameters during the insmod stage, but I'd like to create a parameter "verbose". When set to true, my printks move from KERN_INFO to KERN_ERR severity. </p>

<p>I'd rather not double the number printk lines with an "if(verbose)" above each one. Is there any other way? </p>