public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/4] staging: mt7621-mmc: Fix debug macros and their usages
@ 2018-08-23 17:22 Nishad Kamdar
  2018-08-23 17:28 ` [PATCH v5 1/4] staging: mt7621-mmc: Remove commented code for N_MSG Nishad Kamdar
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Nishad Kamdar @ 2018-08-23 17:22 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Joe Perches, NeilBrown, devel, Christian Lütke-Stetzkamp,
	linux-kernel, John Crispin, Dan Carpenter

The patchset fixes the four debug macros N_MSG, ERR_MSG, INIT_MSG and
IRQ_MSG. Each patch fixes one particular macro and its usages.

For N_MSG, removes the commented code in dbg.h.

For ERR_MSG and IRQ_MSG, replaces printk with dev_<level> without __func__ or
__LINE__ or current->comm and current->pid. Removes the do {} while(0) loop
for the single statement macro. Further drops the macros and replaces their
usages with dev_<level>. Deletes the commented usages.

Removes the INIT_MSG macro and its usages.

Changes in v5:
  - Remove commented code for N_MSG().
  - Remove commented ERR_MSG() usages.
 
Changes in v4:
  - Create multiple patches, one for each type of macro being
    deleted/changed.

Changes in v3:
  - Replace usages of ERR_MSG and IRQ_MSG with dev_err() in code itself.
  - Remove all INIT_MSG usages.
  - Drop ERR_MSG, INIT_MSG and IRQ_MSG from dbg.h.

Changes in v2:
  - Replace printk with dev_<level>.
  - Remove __func__, __LINE__, current->comm, current->pid from arguments.
  - Remove the do {} while(0) loop from these macros.
  - Modify commit message to include other changes.

Nishad Kamdar (4):
  staging: mt7621-mmc: Remove commented code for N_MSG
  staging: mt7621-mmc: Fix debug macro ERR_MSG and its usages
  staging: mt7621-mmc: Remove macro INIT_MSG and its usages
  staging: mt7621-mmc: Fix debug macro IRQ_MSG and its usages

 drivers/staging/mt7621-mmc/dbg.h |  33 ------
 drivers/staging/mt7621-mmc/sd.c  | 172 +++++++++++++++++++------------
 2 files changed, 108 insertions(+), 97 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-08-29 17:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-23 17:22 [PATCH v5 0/4] staging: mt7621-mmc: Fix debug macros and their usages Nishad Kamdar
2018-08-23 17:28 ` [PATCH v5 1/4] staging: mt7621-mmc: Remove commented code for N_MSG Nishad Kamdar
2018-08-27 17:33   ` Greg Kroah-Hartman
2018-08-29 17:12     ` Nishad Kamdar
2018-08-23 17:30 ` [PATCH v5 2/4] staging: mt7621-mmc: Fix debug macro ERR_MSG and its usages Nishad Kamdar
2018-08-23 17:31 ` [PATCH v5 3/4] staging: mt7621-mmc: Remove macro INIT_MSG " Nishad Kamdar
2018-08-23 17:33 ` [PATCH v5 4/4] staging: mt7621-mmc: Fix debug macro IRQ_MSG " Nishad Kamdar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox