public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/8] mtd_tests: Remove duplicate code and cleanups
@ 2012-10-02 14:26 Vikram Narayanan
  2012-10-02 14:28 ` [PATCH 1/8] mtd_tests: Refactor duplicate code Vikram Narayanan
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Vikram Narayanan @ 2012-10-02 14:26 UTC (permalink / raw)
  To: linux-mtd; +Cc: Iwo Mergler, Brian Norris, Adrian Hunter, Artem Bityutskiy

Cc: Artem Bityutskiy <dedekind1@gmail.com>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Adrian Hunter <ext-adrian.hunter@nokia.com>
Cc: Iwo Mergler <Iwo.Mergler@netcommwireless.com.au>

This RFC patchset moves some common code in all the tests to a common header
file. Also, all the printk,PRINT_PREF are replaced with pr_info style prints.
This way duplicates are eliminated and the code looks clean.

I deliberately missed out the mtd_oobtest as Brian Norris has already sent a
patch for that.

All the patches are compile tested and checkpatch clean(No checkpatch warnings
are introduced by the code that is added in this patch).

Vikram Narayanan(8):
  mtd_tests: Refactor duplicate code
  mtd_pagetest: Replace printk with pr_{info,crit}
  mtd_torturetest: Replace printk with pr_{info,crit}
  mtd_subpagetest: Replace printk with pr_info
  mtd_stresstest: Replace printk with pr_{info,crit}
  mtd_speedtest: Replace printk with pr_{info,crit}
  mtd_readtest: Replace printk with pr_info
  mtd_nandbiterrs: Replace msg macro with pr_info

 drivers/mtd/tests/mtd_nandbiterrs.c |   97 +++++++-----------
 drivers/mtd/tests/mtd_oobtest.c     |   31 +-----
 drivers/mtd/tests/mtd_pagetest.c    |  191 +++++++++++++++--------------------
 drivers/mtd/tests/mtd_readtest.c    |   42 ++++----
 drivers/mtd/tests/mtd_speedtest.c   |  140 ++++++++------------------
 drivers/mtd/tests/mtd_stresstest.c  |   71 ++++---------
 drivers/mtd/tests/mtd_subpagetest.c |  147 +++++++++++----------------
 drivers/mtd/tests/mtd_tests.h       |   60 +++++++++++
 drivers/mtd/tests/mtd_torturetest.c |  104 +++++++------------
 9 files changed, 370 insertions(+), 513 deletions(-)

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

end of thread, other threads:[~2012-10-05 10:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 14:26 [RFC PATCH 0/8] mtd_tests: Remove duplicate code and cleanups Vikram Narayanan
2012-10-02 14:28 ` [PATCH 1/8] mtd_tests: Refactor duplicate code Vikram Narayanan
2012-10-05 10:17   ` Artem Bityutskiy
2012-10-02 14:28 ` [PATCH 2/8] mtd_pagetest: Replace printk with pr_{info,crit} Vikram Narayanan
2012-10-02 14:29 ` [PATCH 3/8] mtd_torturetest: " Vikram Narayanan
2012-10-02 14:30 ` [PATCH 4/8] mtd_subpagetest: Replace printk with pr_info Vikram Narayanan
2012-10-02 14:31 ` [PATCH 5/8] mtd_stresstest: Replace printk with pr_{info,crit} Vikram Narayanan
2012-10-02 14:32 ` [PATCH 6/8] mtd_speedtest: " Vikram Narayanan
2012-10-02 14:33 ` [PATCH 7/8] mtd_readtest: Replace printk with pr_info Vikram Narayanan
2012-10-02 14:33 ` [PATCH 8/8] mtd_nandbiterrs: Replace msg macro " Vikram Narayanan

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