Skip to content

ide debugging macros

Borislav Petkov linux-ide lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ide: unify conversion macrosdrivers/ide/ide-cd.c drivers/ide/ide-floppy.c drivers/ide/ide-tape.c +1 more+30 -390 replies
2/5ide: add drive->debug_mask switchinclude/linux/ide.h+3 -00 replies
3/5ide: add a driver-wide debugging macroinclude/linux/ide.h+20 -02 replies
4/5ide-floppy: convert driver to the new debugging macrodrivers/ide/ide-floppy.c+75 -650 replies
5/5ide-floppy: add a debug_mask module parameterdrivers/ide/ide-floppy.c+7 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] ide debugging macros

Hi Bart,

here's something i've been wanting to do for a long time: debugging macros. The reason for it is that i got tired of adding debug printk's everytime i'm testing something so here we go.

The debugging macro is similar to the old ones but is one for all drivers (currently only ide-floppy), is nice on branch prediction and is controlled by a drive->debug_mask switch which is a module parameter and as such can be set at module load time, of course. I've been thinking of adding also a sysfs attribute too but can't seem to find quite the justification for it so no sysfs for now :)

In addition, one can still optimize away all the debug calls in the old manner and i'm sure those will be removed completely too when ide generic conversion is done.

Please tell me what you think, what can be changed/improved and after we've figured out the details I'll do the other drivers too.

Thanks.

 drivers/ide/ide-cd.c     |   17 ++---
 drivers/ide/ide-floppy.c |  168 +++++++++++++++++++++++++---------------------
 drivers/ide/ide-tape.c   |   23 ++----
 include/linux/ide.h      |   31 ++++++++-
 4 files changed, 135 insertions(+), 104 deletions(-)