diff options
author | Joe Perches <joe@perches.com> | 2010-02-05 20:51:13 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 17:54:59 -0500 |
commit | f45ba776da4fe6c9a9eddd42b0fd5d1f15c260f3 (patch) | |
tree | d830c5552433b85caf93c72cae31ea67d45c330b /drivers | |
parent | 759f3634267a67ac90f3fa7fc06510dfd43b4e45 (diff) |
USB: Convert concatenated __FILE__ to %s, __FILE__
Reduces string space a bit
Neaten a macro redefine of dbg
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/ehci-ppc-of.c | 12 | ||||
-rw-r--r-- | drivers/usb/host/ehci-xilinx-of.c | 6 | ||||
-rw-r--r-- | drivers/usb/host/ohci-dbg.c | 4 | ||||
-rw-r--r-- | drivers/usb/host/ohci-lh7a404.c | 11 | ||||
-rw-r--r-- | drivers/usb/host/ohci-ppc-of.c | 8 | ||||
-rw-r--r-- | drivers/usb/host/ohci-ppc-soc.c | 8 | ||||
-rw-r--r-- | drivers/usb/host/ohci-sa1111.c | 8 | ||||
-rw-r--r-- | drivers/usb/misc/adutux.c | 6 | ||||
-rw-r--r-- | drivers/usb/misc/ldusb.c | 2 | ||||
-rw-r--r-- | drivers/usb/misc/legousbtower.c | 11 | ||||
-rw-r--r-- | drivers/usb/serial/omninet.c | 4 |
11 files changed, 41 insertions, 39 deletions
diff --git a/drivers/usb/host/ehci-ppc-of.c b/drivers/usb/host/ehci-ppc-of.c index 870b98e07208..8df33b8a634c 100644 --- a/drivers/usb/host/ehci-ppc-of.c +++ b/drivers/usb/host/ehci-ppc-of.c | |||
@@ -134,21 +134,21 @@ ehci_hcd_ppc_of_probe(struct of_device *op, const struct of_device_id *match) | |||
134 | hcd->rsrc_len = res.end - res.start + 1; | 134 | hcd->rsrc_len = res.end - res.start + 1; |
135 | 135 | ||
136 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { | 136 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { |
137 | printk(KERN_ERR __FILE__ ": request_mem_region failed\n"); | 137 | printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__); |
138 | rv = -EBUSY; | 138 | rv = -EBUSY; |
139 | goto err_rmr; | 139 | goto err_rmr; |
140 | } | 140 | } |
141 | 141 | ||
142 | irq = irq_of_parse_and_map(dn, 0); | 142 | irq = irq_of_parse_and_map(dn, 0); |
143 | if (irq == NO_IRQ) { | 143 | if (irq == NO_IRQ) { |
144 | printk(KERN_ERR __FILE__ ": irq_of_parse_and_map failed\n"); | 144 | printk(KERN_ERR "%s: irq_of_parse_and_map failed\n", __FILE__); |
145 | rv = -EBUSY; | 145 | rv = -EBUSY; |
146 | goto err_irq; | 146 | goto err_irq; |
147 | } | 147 | } |
148 | 148 | ||
149 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); | 149 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); |
150 | if (!hcd->regs) { | 150 | if (!hcd->regs) { |
151 | printk(KERN_ERR __FILE__ ": ioremap failed\n"); | 151 | printk(KERN_ERR "%s: ioremap failed\n", __FILE__); |
152 | rv = -ENOMEM; | 152 | rv = -ENOMEM; |
153 | goto err_ioremap; | 153 | goto err_ioremap; |
154 | } | 154 | } |
@@ -161,9 +161,9 @@ ehci_hcd_ppc_of_probe(struct of_device *op, const struct of_device_id *match) | |||
161 | ehci->ohci_hcctrl_reg = ioremap(res.start + | 161 | ehci->ohci_hcctrl_reg = ioremap(res.start + |
162 | OHCI_HCCTRL_OFFSET, OHCI_HCCTRL_LEN); | 162 | OHCI_HCCTRL_OFFSET, OHCI_HCCTRL_LEN); |
163 | else | 163 | else |
164 | pr_debug(__FILE__ ": no ohci offset in fdt\n"); | 164 | pr_debug("%s: no ohci offset in fdt\n", __FILE__); |
165 | if (!ehci->ohci_hcctrl_reg) { | 165 | if (!ehci->ohci_hcctrl_reg) { |
166 | pr_debug(__FILE__ ": ioremap for ohci hcctrl failed\n"); | 166 | pr_debug("%s: ioremap for ohci hcctrl failed\n", __FILE__); |
167 | } else { | 167 | } else { |
168 | ehci->has_amcc_usb23 = 1; | 168 | ehci->has_amcc_usb23 = 1; |
169 | } | 169 | } |
@@ -241,7 +241,7 @@ static int ehci_hcd_ppc_of_remove(struct of_device *op) | |||
241 | else | 241 | else |
242 | release_mem_region(res.start, 0x4); | 242 | release_mem_region(res.start, 0x4); |
243 | else | 243 | else |
244 | pr_debug(__FILE__ ": no ohci offset in fdt\n"); | 244 | pr_debug("%s: no ohci offset in fdt\n", __FILE__); |
245 | of_node_put(np); | 245 | of_node_put(np); |
246 | } | 246 | } |
247 | 247 | ||
diff --git a/drivers/usb/host/ehci-xilinx-of.c b/drivers/usb/host/ehci-xilinx-of.c index 4937de7b9e56..f603bb2c0a8e 100644 --- a/drivers/usb/host/ehci-xilinx-of.c +++ b/drivers/usb/host/ehci-xilinx-of.c | |||
@@ -177,21 +177,21 @@ ehci_hcd_xilinx_of_probe(struct of_device *op, const struct of_device_id *match) | |||
177 | hcd->rsrc_len = res.end - res.start + 1; | 177 | hcd->rsrc_len = res.end - res.start + 1; |
178 | 178 | ||
179 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { | 179 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { |
180 | printk(KERN_ERR __FILE__ ": request_mem_region failed\n"); | 180 | printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__); |
181 | rv = -EBUSY; | 181 | rv = -EBUSY; |
182 | goto err_rmr; | 182 | goto err_rmr; |
183 | } | 183 | } |
184 | 184 | ||
185 | irq = irq_of_parse_and_map(dn, 0); | 185 | irq = irq_of_parse_and_map(dn, 0); |
186 | if (irq == NO_IRQ) { | 186 | if (irq == NO_IRQ) { |
187 | printk(KERN_ERR __FILE__ ": irq_of_parse_and_map failed\n"); | 187 | printk(KERN_ERR "%s: irq_of_parse_and_map failed\n", __FILE__); |
188 | rv = -EBUSY; | 188 | rv = -EBUSY; |
189 | goto err_irq; | 189 | goto err_irq; |
190 | } | 190 | } |
191 | 191 | ||
192 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); | 192 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); |
193 | if (!hcd->regs) { | 193 | if (!hcd->regs) { |
194 | printk(KERN_ERR __FILE__ ": ioremap failed\n"); | 194 | printk(KERN_ERR "%s: ioremap failed\n", __FILE__); |
195 | rv = -ENOMEM; | 195 | rv = -ENOMEM; |
196 | goto err_ioremap; | 196 | goto err_ioremap; |
197 | } | 197 | } |
diff --git a/drivers/usb/host/ohci-dbg.c b/drivers/usb/host/ohci-dbg.c index 811f5dfdc582..8ad2441b0284 100644 --- a/drivers/usb/host/ohci-dbg.c +++ b/drivers/usb/host/ohci-dbg.c | |||
@@ -53,13 +53,13 @@ urb_print(struct urb * urb, char * str, int small, int status) | |||
53 | int i, len; | 53 | int i, len; |
54 | 54 | ||
55 | if (usb_pipecontrol (pipe)) { | 55 | if (usb_pipecontrol (pipe)) { |
56 | printk (KERN_DEBUG __FILE__ ": setup(8):"); | 56 | printk (KERN_DEBUG "%s: setup(8):", __FILE__); |
57 | for (i = 0; i < 8 ; i++) | 57 | for (i = 0; i < 8 ; i++) |
58 | printk (" %02x", ((__u8 *) urb->setup_packet) [i]); | 58 | printk (" %02x", ((__u8 *) urb->setup_packet) [i]); |
59 | printk ("\n"); | 59 | printk ("\n"); |
60 | } | 60 | } |
61 | if (urb->transfer_buffer_length > 0 && urb->transfer_buffer) { | 61 | if (urb->transfer_buffer_length > 0 && urb->transfer_buffer) { |
62 | printk (KERN_DEBUG __FILE__ ": data(%d/%d):", | 62 | printk (KERN_DEBUG "%s: data(%d/%d):", __FILE__, |
63 | urb->actual_length, | 63 | urb->actual_length, |
64 | urb->transfer_buffer_length); | 64 | urb->transfer_buffer_length); |
65 | len = usb_pipeout (pipe)? | 65 | len = usb_pipeout (pipe)? |
diff --git a/drivers/usb/host/ohci-lh7a404.c b/drivers/usb/host/ohci-lh7a404.c index de42283149c7..18d39f0463ee 100644 --- a/drivers/usb/host/ohci-lh7a404.c +++ b/drivers/usb/host/ohci-lh7a404.c | |||
@@ -28,8 +28,8 @@ extern int usb_disabled(void); | |||
28 | 28 | ||
29 | static void lh7a404_start_hc(struct platform_device *dev) | 29 | static void lh7a404_start_hc(struct platform_device *dev) |
30 | { | 30 | { |
31 | printk(KERN_DEBUG __FILE__ | 31 | printk(KERN_DEBUG "%s: starting LH7A404 OHCI USB Controller\n", |
32 | ": starting LH7A404 OHCI USB Controller\n"); | 32 | __FILE__); |
33 | 33 | ||
34 | /* | 34 | /* |
35 | * Now, carefully enable the USB clock, and take | 35 | * Now, carefully enable the USB clock, and take |
@@ -39,14 +39,13 @@ static void lh7a404_start_hc(struct platform_device *dev) | |||
39 | udelay(1000); | 39 | udelay(1000); |
40 | USBH_CMDSTATUS = OHCI_HCR; | 40 | USBH_CMDSTATUS = OHCI_HCR; |
41 | 41 | ||
42 | printk(KERN_DEBUG __FILE__ | 42 | printk(KERN_DEBUG "%s: Clock to USB host has been enabled \n", __FILE__); |
43 | ": Clock to USB host has been enabled \n"); | ||
44 | } | 43 | } |
45 | 44 | ||
46 | static void lh7a404_stop_hc(struct platform_device *dev) | 45 | static void lh7a404_stop_hc(struct platform_device *dev) |
47 | { | 46 | { |
48 | printk(KERN_DEBUG __FILE__ | 47 | printk(KERN_DEBUG "%s: stopping LH7A404 OHCI USB Controller\n", |
49 | ": stopping LH7A404 OHCI USB Controller\n"); | 48 | __FILE__); |
50 | 49 | ||
51 | CSC_PWRCNT &= ~CSC_PWRCNT_USBH_EN; /* Disable clock */ | 50 | CSC_PWRCNT &= ~CSC_PWRCNT_USBH_EN; /* Disable clock */ |
52 | } | 51 | } |
diff --git a/drivers/usb/host/ohci-ppc-of.c b/drivers/usb/host/ohci-ppc-of.c index 2a7def16128d..103263c230cf 100644 --- a/drivers/usb/host/ohci-ppc-of.c +++ b/drivers/usb/host/ohci-ppc-of.c | |||
@@ -114,21 +114,21 @@ ohci_hcd_ppc_of_probe(struct of_device *op, const struct of_device_id *match) | |||
114 | hcd->rsrc_len = res.end - res.start + 1; | 114 | hcd->rsrc_len = res.end - res.start + 1; |
115 | 115 | ||
116 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { | 116 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { |
117 | printk(KERN_ERR __FILE__ ": request_mem_region failed\n"); | 117 | printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__); |
118 | rv = -EBUSY; | 118 | rv = -EBUSY; |
119 | goto err_rmr; | 119 | goto err_rmr; |
120 | } | 120 | } |
121 | 121 | ||
122 | irq = irq_of_parse_and_map(dn, 0); | 122 | irq = irq_of_parse_and_map(dn, 0); |
123 | if (irq == NO_IRQ) { | 123 | if (irq == NO_IRQ) { |
124 | printk(KERN_ERR __FILE__ ": irq_of_parse_and_map failed\n"); | 124 | printk(KERN_ERR "%s: irq_of_parse_and_map failed\n", __FILE__); |
125 | rv = -EBUSY; | 125 | rv = -EBUSY; |
126 | goto err_irq; | 126 | goto err_irq; |
127 | } | 127 | } |
128 | 128 | ||
129 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); | 129 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); |
130 | if (!hcd->regs) { | 130 | if (!hcd->regs) { |
131 | printk(KERN_ERR __FILE__ ": ioremap failed\n"); | 131 | printk(KERN_ERR "%s: ioremap failed\n", __FILE__); |
132 | rv = -ENOMEM; | 132 | rv = -ENOMEM; |
133 | goto err_ioremap; | 133 | goto err_ioremap; |
134 | } | 134 | } |
@@ -169,7 +169,7 @@ ohci_hcd_ppc_of_probe(struct of_device *op, const struct of_device_id *match) | |||
169 | } else | 169 | } else |
170 | release_mem_region(res.start, 0x4); | 170 | release_mem_region(res.start, 0x4); |
171 | } else | 171 | } else |
172 | pr_debug(__FILE__ ": cannot get ehci offset from fdt\n"); | 172 | pr_debug("%s: cannot get ehci offset from fdt\n", __FILE__); |
173 | } | 173 | } |
174 | 174 | ||
175 | iounmap(hcd->regs); | 175 | iounmap(hcd->regs); |
diff --git a/drivers/usb/host/ohci-ppc-soc.c b/drivers/usb/host/ohci-ppc-soc.c index cd3398b675b2..89e670e38c10 100644 --- a/drivers/usb/host/ohci-ppc-soc.c +++ b/drivers/usb/host/ohci-ppc-soc.c | |||
@@ -41,14 +41,14 @@ static int usb_hcd_ppc_soc_probe(const struct hc_driver *driver, | |||
41 | 41 | ||
42 | res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); | 42 | res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); |
43 | if (!res) { | 43 | if (!res) { |
44 | pr_debug(__FILE__ ": no irq\n"); | 44 | pr_debug("%s: no irq\n", __FILE__); |
45 | return -ENODEV; | 45 | return -ENODEV; |
46 | } | 46 | } |
47 | irq = res->start; | 47 | irq = res->start; |
48 | 48 | ||
49 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 49 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
50 | if (!res) { | 50 | if (!res) { |
51 | pr_debug(__FILE__ ": no reg addr\n"); | 51 | pr_debug("%s: no reg addr\n", __FILE__); |
52 | return -ENODEV; | 52 | return -ENODEV; |
53 | } | 53 | } |
54 | 54 | ||
@@ -59,14 +59,14 @@ static int usb_hcd_ppc_soc_probe(const struct hc_driver *driver, | |||
59 | hcd->rsrc_len = res->end - res->start + 1; | 59 | hcd->rsrc_len = res->end - res->start + 1; |
60 | 60 | ||
61 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { | 61 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { |
62 | pr_debug(__FILE__ ": request_mem_region failed\n"); | 62 | pr_debug("%s: request_mem_region failed\n", __FILE__); |
63 | retval = -EBUSY; | 63 | retval = -EBUSY; |
64 | goto err1; | 64 | goto err1; |
65 | } | 65 | } |
66 | 66 | ||
67 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); | 67 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); |
68 | if (!hcd->regs) { | 68 | if (!hcd->regs) { |
69 | pr_debug(__FILE__ ": ioremap failed\n"); | 69 | pr_debug("%s: ioremap failed\n", __FILE__); |
70 | retval = -ENOMEM; | 70 | retval = -ENOMEM; |
71 | goto err2; | 71 | goto err2; |
72 | } | 72 | } |
diff --git a/drivers/usb/host/ohci-sa1111.c b/drivers/usb/host/ohci-sa1111.c index e4bbe8e188e4..d8eb3bdafabb 100644 --- a/drivers/usb/host/ohci-sa1111.c +++ b/drivers/usb/host/ohci-sa1111.c | |||
@@ -31,8 +31,8 @@ static void sa1111_start_hc(struct sa1111_dev *dev) | |||
31 | { | 31 | { |
32 | unsigned int usb_rst = 0; | 32 | unsigned int usb_rst = 0; |
33 | 33 | ||
34 | printk(KERN_DEBUG __FILE__ | 34 | printk(KERN_DEBUG "%s: starting SA-1111 OHCI USB Controller\n", |
35 | ": starting SA-1111 OHCI USB Controller\n"); | 35 | __FILE__); |
36 | 36 | ||
37 | #ifdef CONFIG_SA1100_BADGE4 | 37 | #ifdef CONFIG_SA1100_BADGE4 |
38 | if (machine_is_badge4()) { | 38 | if (machine_is_badge4()) { |
@@ -65,8 +65,8 @@ static void sa1111_start_hc(struct sa1111_dev *dev) | |||
65 | static void sa1111_stop_hc(struct sa1111_dev *dev) | 65 | static void sa1111_stop_hc(struct sa1111_dev *dev) |
66 | { | 66 | { |
67 | unsigned int usb_rst; | 67 | unsigned int usb_rst; |
68 | printk(KERN_DEBUG __FILE__ | 68 | printk(KERN_DEBUG "%s: stopping SA-1111 OHCI USB Controller\n", |
69 | ": stopping SA-1111 OHCI USB Controller\n"); | 69 | __FILE__); |
70 | 70 | ||
71 | /* | 71 | /* |
72 | * Put the USB host controller into reset. | 72 | * Put the USB host controller into reset. |
diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c index 306e97825b36..d240de097c62 100644 --- a/drivers/usb/misc/adutux.c +++ b/drivers/usb/misc/adutux.c | |||
@@ -38,7 +38,7 @@ static int debug = 1; | |||
38 | #define dbg(lvl, format, arg...) \ | 38 | #define dbg(lvl, format, arg...) \ |
39 | do { \ | 39 | do { \ |
40 | if (debug >= lvl) \ | 40 | if (debug >= lvl) \ |
41 | printk(KERN_DEBUG __FILE__ " : " format " \n", ## arg); \ | 41 | printk(KERN_DEBUG "%s: " format "\n", __FILE__, ##arg); \ |
42 | } while (0) | 42 | } while (0) |
43 | 43 | ||
44 | 44 | ||
@@ -132,8 +132,8 @@ static void adu_debug_data(int level, const char *function, int size, | |||
132 | if (debug < level) | 132 | if (debug < level) |
133 | return; | 133 | return; |
134 | 134 | ||
135 | printk(KERN_DEBUG __FILE__": %s - length = %d, data = ", | 135 | printk(KERN_DEBUG "%s: %s - length = %d, data = ", |
136 | function, size); | 136 | __FILE__, function, size); |
137 | for (i = 0; i < size; ++i) | 137 | for (i = 0; i < size; ++i) |
138 | printk("%.2x ", data[i]); | 138 | printk("%.2x ", data[i]); |
139 | printk("\n"); | 139 | printk("\n"); |
diff --git a/drivers/usb/misc/ldusb.c b/drivers/usb/misc/ldusb.c index 7c0bd13eccb2..dd41d8710043 100644 --- a/drivers/usb/misc/ldusb.c +++ b/drivers/usb/misc/ldusb.c | |||
@@ -798,7 +798,7 @@ static int __init ld_usb_init(void) | |||
798 | /* register this driver with the USB subsystem */ | 798 | /* register this driver with the USB subsystem */ |
799 | retval = usb_register(&ld_usb_driver); | 799 | retval = usb_register(&ld_usb_driver); |
800 | if (retval) | 800 | if (retval) |
801 | err("usb_register failed for the "__FILE__" driver. Error number %d\n", retval); | 801 | err("usb_register failed for the %s driver. Error number %d\n", __FILE__, retval); |
802 | 802 | ||
803 | return retval; | 803 | return retval; |
804 | } | 804 | } |
diff --git a/drivers/usb/misc/legousbtower.c b/drivers/usb/misc/legousbtower.c index 3d4378fb4410..8547bf9e3175 100644 --- a/drivers/usb/misc/legousbtower.c +++ b/drivers/usb/misc/legousbtower.c | |||
@@ -95,8 +95,11 @@ | |||
95 | 95 | ||
96 | /* Use our own dbg macro */ | 96 | /* Use our own dbg macro */ |
97 | #undef dbg | 97 | #undef dbg |
98 | #define dbg(lvl, format, arg...) do { if (debug >= lvl) printk(KERN_DEBUG __FILE__ ": " format "\n", ## arg); } while (0) | 98 | #define dbg(lvl, format, arg...) \ |
99 | 99 | do { \ | |
100 | if (debug >= lvl) \ | ||
101 | printk(KERN_DEBUG "%s: " format "\n", __FILE__, ##arg); \ | ||
102 | } while (0) | ||
100 | 103 | ||
101 | /* Version Information */ | 104 | /* Version Information */ |
102 | #define DRIVER_VERSION "v0.96" | 105 | #define DRIVER_VERSION "v0.96" |
@@ -302,7 +305,7 @@ static inline void lego_usb_tower_debug_data (int level, const char *function, i | |||
302 | if (debug < level) | 305 | if (debug < level) |
303 | return; | 306 | return; |
304 | 307 | ||
305 | printk (KERN_DEBUG __FILE__": %s - length = %d, data = ", function, size); | 308 | printk (KERN_DEBUG "%s: %s - length = %d, data = ", __FILE__, function, size); |
306 | for (i = 0; i < size; ++i) { | 309 | for (i = 0; i < size; ++i) { |
307 | printk ("%.2x ", data[i]); | 310 | printk ("%.2x ", data[i]); |
308 | } | 311 | } |
@@ -1055,7 +1058,7 @@ static int __init lego_usb_tower_init(void) | |||
1055 | /* register this driver with the USB subsystem */ | 1058 | /* register this driver with the USB subsystem */ |
1056 | result = usb_register(&tower_driver); | 1059 | result = usb_register(&tower_driver); |
1057 | if (result < 0) { | 1060 | if (result < 0) { |
1058 | err("usb_register failed for the "__FILE__" driver. Error number %d", result); | 1061 | err("usb_register failed for the %s driver. Error number %d", __FILE__, result); |
1059 | retval = -1; | 1062 | retval = -1; |
1060 | goto exit; | 1063 | goto exit; |
1061 | } | 1064 | } |
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index 7793c4ada038..89c724c0ac0a 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -218,8 +218,8 @@ static void omninet_read_bulk_callback(struct urb *urb) | |||
218 | 218 | ||
219 | if (debug && header->oh_xxx != 0x30) { | 219 | if (debug && header->oh_xxx != 0x30) { |
220 | if (urb->actual_length) { | 220 | if (urb->actual_length) { |
221 | printk(KERN_DEBUG __FILE__ | 221 | printk(KERN_DEBUG "%s: omninet_read %d: ", |
222 | ": omninet_read %d: ", header->oh_len); | 222 | __FILE__, header->oh_len); |
223 | for (i = 0; i < (header->oh_len + | 223 | for (i = 0; i < (header->oh_len + |
224 | OMNINET_HEADERLEN); i++) | 224 | OMNINET_HEADERLEN); i++) |
225 | printk("%.2x ", data[i]); | 225 | printk("%.2x ", data[i]); |