Geert, in the beginning, I decided that it should be KERN_DEBUG, not
KERN_INFO, and made that change in the first patch submission. I used
pr_debug().
Then Joe pointed out that this required DEBUG defined, which I'd forgotten
(I didn't know about CONFIG_DYNAMIC_DEBUG). So, to retain the old
behaviour, while following the example of other usages of ei_debug in
lib8390 and drivers, I changed it to printk(KERN_DEBUG ...).
Then Joe pointed out that I should take advantage of pr_fmt(), so the
third submission made that change.
(Then David said I should propagate the return code from request_irq, so I
made the present patch submission.)
Apparently David now wants me to submit this again --
if (ei_debug)
pr_debug(...)
David, if that code is acceptable, please let me know.
If that code is mandatory, why didn't you say so upon the second patch
submission?
Alternatively, if the following is preferred (as implied by your last
email):
if (ei_debug)
pr_info(...)
Then let me know, and I'll quit bothering you.
Or just go ahead and change my patch if you wish to save us both some
time.
Finn
--