Skip to contentSkip to conversation

rspiusb driver in staging area removal of dbg local macro

DISCUSSION Greg KH 1 participant 1 message Jun 2, 2009 Kernel janitors

lore
Share & tools
lore

Greg KH

author
#0 lore raw
Quoted 16 lines · On Sat, May 30, 2009 at 12:12:21AM +0000, [email protected] wrote:
Quoted 1 line

From 57d81a0181a69d9a7ebd4bd5ae2c017eed51070b Mon Sep 17 00:00:00 2001

From: Jean-Pierre Sainfeld <[email protected]>
Date: Thu, 21 May 2009 10:58:15 -0700
Subject: [PATCH] This patch addressed the TODO list item : " remove dbg() macro" The dbg invocations have been replaced by dev_dbg call whenever possible. This means wherever the pdx points to a valid device_extension structure.

---
drivers/staging/rspiusb/rspiusb.c | 197 +++++++++++++++++++++++--------------

1 files changed, 122 insertions(+), 75 deletions(-) 
drivers/staging/rspiusb/rspiusb.c +0 -0
index 090bf41..7adf2cf 100644 

drivers/staging/rspiusb/rspiusb.c static int debug = 1; · line 46

Quoted 10 lines
drivers/staging/rspiusb/rspiusb.c +0 -7
@@ -37,13 +37,6 @@ static int debug = 1; 
 #else 
 static int debug; 
 #endif 
-/* Use our own dbg macro */ 
-#undef dbg 
-#define dbg(format, arg...) \ 
- do { \ 
- if (debug) \ 
- printk(KERN_DEBUG __FILE__ ": " format "\n" , ##arg); \ 
- } while (0) 

Your patch seems to have all spaces stripped out of it and can't be applied :(

Also, there have been some changes in this driver recently, can you respin this against the linux-next tree that comes out tomorrow?

thanks,

greg k-h