public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] s390/net/netiucv: remove unused macro
@ 2013-05-28  9:55 Andy Shevchenko
  2013-06-03 10:37 ` Ursula Braun
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2013-05-28  9:55 UTC (permalink / raw)
  To: linux-s390

If someone is interested to dump something they may consider to use
print_hex_dump() or print_hex_dump_bytes() kernel helpers.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/s390/net/netiucv.c | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c
index 4ffa66c..533454a 100644
--- a/drivers/s390/net/netiucv.c
+++ b/drivers/s390/net/netiucv.c
@@ -130,26 +130,6 @@ static inline int iucv_dbf_passes(debug_info_t *dbf_grp, int level)
 /**
  * some more debug stuff
  */
-#define IUCV_HEXDUMP16(importance,header,ptr) \
-PRINT_##importance(header "%02x %02x %02x %02x  %02x %02x %02x %02x  " \
-		   "%02x %02x %02x %02x  %02x %02x %02x %02x\n", \
-		   *(((char*)ptr)),*(((char*)ptr)+1),*(((char*)ptr)+2), \
-		   *(((char*)ptr)+3),*(((char*)ptr)+4),*(((char*)ptr)+5), \
-		   *(((char*)ptr)+6),*(((char*)ptr)+7),*(((char*)ptr)+8), \
-		   *(((char*)ptr)+9),*(((char*)ptr)+10),*(((char*)ptr)+11), \
-		   *(((char*)ptr)+12),*(((char*)ptr)+13), \
-		   *(((char*)ptr)+14),*(((char*)ptr)+15)); \
-PRINT_##importance(header "%02x %02x %02x %02x  %02x %02x %02x %02x  " \
-		   "%02x %02x %02x %02x  %02x %02x %02x %02x\n", \
-		   *(((char*)ptr)+16),*(((char*)ptr)+17), \
-		   *(((char*)ptr)+18),*(((char*)ptr)+19), \
-		   *(((char*)ptr)+20),*(((char*)ptr)+21), \
-		   *(((char*)ptr)+22),*(((char*)ptr)+23), \
-		   *(((char*)ptr)+24),*(((char*)ptr)+25), \
-		   *(((char*)ptr)+26),*(((char*)ptr)+27), \
-		   *(((char*)ptr)+28),*(((char*)ptr)+29), \
-		   *(((char*)ptr)+30),*(((char*)ptr)+31));
-
 #define PRINTK_HEADER " iucv: "       /* for debugging */
 
 /* dummy device to make sure netiucv_pm functions are called */
-- 
1.8.2.rc0.22.gb3600c3

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

* Re: [PATCH] s390/net/netiucv: remove unused macro
  2013-05-28  9:55 [PATCH] s390/net/netiucv: remove unused macro Andy Shevchenko
@ 2013-06-03 10:37 ` Ursula Braun
  0 siblings, 0 replies; 2+ messages in thread
From: Ursula Braun @ 2013-06-03 10:37 UTC (permalink / raw)
  To: linux-s390

Thanks, Andy. We will add your patch to one of our next submissions to
Dave Miller.

Regards, Ursula Braun


On Mon, 2013-05-28, Andy Shevchenko wrote:

> If someone is interested to dump something they may consider to use
> print_hex_dump() or print_hex_dump_bytes() kernel helpers.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/s390/net/netiucv.c | 20 --------------------
> 1 file changed, 20 deletions(-)
> 
> diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c
> index 4ffa66c..533454a 100644
> --- a/drivers/s390/net/netiucv.c
> +++ b/drivers/s390/net/netiucv.c
> @@ -130,26 +130,6 @@ static inline int iucv_dbf_passes(debug_info_t
> *dbf_grp, int level)
> /**
>  * some more debug stuff
>  */
> -#define IUCV_HEXDUMP16(importance,header,ptr) \
> -PRINT_##importance(header "%02x %02x %02x %02x  %02x %02x %02x %02x
>  " \
> -                                     "%02x %02x %02x %02x  %02x %02x
> %02x %02x\n", \
> -
> *(((char*)ptr)),*(((char*)ptr)+1),*(((char*)ptr)+2), \
> -
> *(((char*)ptr)+3),*(((char*)ptr)+4),*(((char*)ptr)+5), \
> -
> *(((char*)ptr)+6),*(((char*)ptr)+7),*(((char*)ptr)+8), \
> -
> *(((char*)ptr)+9),*(((char*)ptr)+10),*(((char*)ptr)+11), \
> -
> *(((char*)ptr)+12),*(((char*)ptr)+13), \
> -
> *(((char*)ptr)+14),*(((char*)ptr)+15)); \
> -PRINT_##importance(header "%02x %02x %02x %02x  %02x %02x %02x %02x
>  " \
> -                                     "%02x %02x %02x %02x  %02x %02x
> %02x %02x\n", \
> -
> *(((char*)ptr)+16),*(((char*)ptr)+17), \
> -
> *(((char*)ptr)+18),*(((char*)ptr)+19), \
> -
> *(((char*)ptr)+20),*(((char*)ptr)+21), \
> -
> *(((char*)ptr)+22),*(((char*)ptr)+23), \
> -
> *(((char*)ptr)+24),*(((char*)ptr)+25), \
> -
> *(((char*)ptr)+26),*(((char*)ptr)+27), \
> -
> *(((char*)ptr)+28),*(((char*)ptr)+29), \
> -
> *(((char*)ptr)+30),*(((char*)ptr)+31));
> -
> #define PRINTK_HEADER " iucv: "       /* for debugging */
> 
> /* dummy device to make sure netiucv_pm functions are called */

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

end of thread, other threads:[~2013-06-03 10:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-28  9:55 [PATCH] s390/net/netiucv: remove unused macro Andy Shevchenko
2013-06-03 10:37 ` Ursula Braun

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