Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1651334 > unrolled thread
| Started by | Alexander Amelkin <alexander@amelkin.msk.ru> |
|---|---|
| First post | 2017-05-26 13:40 +0200 |
| Last post | 2017-05-26 20:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 3/3] usb: max3421-hcd: Remove function name from dev_dbg calls Alexander Amelkin <alexander@amelkin.msk.ru> - 2017-05-26 13:40 +0200
Re: [PATCH 3/3] usb: max3421-hcd: Remove function name from dev_dbg calls Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-05-26 20:50 +0200
| From | Alexander Amelkin <alexander@amelkin.msk.ru> |
|---|---|
| Date | 2017-05-26 13:40 +0200 |
| Subject | [PATCH 3/3] usb: max3421-hcd: Remove function name from dev_dbg calls |
| Message-ID | <tLlL4-5kc-25@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
NOTE:
Please don't use the plain text here as a patch because it most probably
is corrupted by my webmail client.
Attached is a copy of the following text guaranteed to have correct
tabs/spaces.
-------------------------
From b9a7559d24c0b2cb6e69124d861a943f79272681 Mon Sep 17 00:00:00 2001
From: Alexander Amelkin <amelkin@fastwel.ru>
Date: Fri, 14 Apr 2017 18:01:58 +0300
Subject: [PATCH 3/3] usb: max3421-hcd: Remove function name from dev_dbg
calls
The kernel dynamic debugging facility already has a
means for displaying the function name if the developer
wants to (the 'f' flag).
There is no need to hard-code output of the function
name into dev_dbg calls.
Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
---
drivers/usb/host/max3421-hcd.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/drivers/usb/host/max3421-hcd.c
b/drivers/usb/host/max3421-hcd.c
index bd59c16..cfca8a2 100644
--- a/drivers/usb/host/max3421-hcd.c
+++ b/drivers/usb/host/max3421-hcd.c
@@ -706,8 +706,8 @@ max3421_select_and_start_urb(struct usb_hcd *hcd)
urb = list_first_entry(&ep->urb_list, struct urb,
urb_list);
if (urb->unlinked) {
- dev_dbg(&spi->dev, "%s: URB %p unlinked=%d",
- __func__, urb, urb->unlinked);
+ dev_dbg(&spi->dev, "URB %p unlinked=%d",
+ urb, urb->unlinked);
max3421_hcd->curr_urb = urb;
max3421_hcd->urb_done = 1;
spin_unlock_irqrestore(&max3421_hcd->lock,
@@ -815,8 +815,8 @@ max3421_check_unlink(struct usb_hcd *hcd)
list_for_each_entry_safe(urb, next, &ep->urb_list, urb_list) {
if (urb->unlinked) {
retval = 1;
- dev_dbg(&spi->dev, "%s: URB %p unlinked=%d",
- __func__, urb, urb->unlinked);
+ dev_dbg(&spi->dev, "URB %p unlinked=%d",
+ urb, urb->unlinked);
usb_hcd_unlink_urb_from_ep(hcd, urb);
spin_unlock_irqrestore(&max3421_hcd->lock,
flags);
@@ -912,8 +912,8 @@ max3421_handle_error(struct usb_hcd *hcd, u8 hrsl)
* from; report error
*/
max3421_hcd->urb_done = hrsl_to_error[result_code];
- dev_dbg(&spi->dev, "%s: unexpected error HRSL=0x%02x",
- __func__, hrsl);
+ dev_dbg(&spi->dev, "unexpected error HRSL=0x%02x",
+ hrsl);
break;
case MAX3421_HRSL_TOGERR:
@@ -940,14 +940,12 @@ max3421_handle_error(struct usb_hcd *hcd, u8 hrsl)
else {
/* Based on ohci.h cc_to_err[]: */
max3421_hcd->urb_done = hrsl_to_error[result_code];
- dev_dbg(&spi->dev, "%s: unexpected error HRSL=0x%02x",
- __func__, hrsl);
+ dev_dbg(&spi->dev, "unexpected error HRSL=0x%02x", hrsl);
}
break;
case MAX3421_HRSL_STALL:
- dev_dbg(&spi->dev, "%s: unexpected error HRSL=0x%02x",
- __func__, hrsl);
+ dev_dbg(&spi->dev, "unexpected error HRSL=0x%02x", hrsl);
max3421_hcd->urb_done = hrsl_to_error[result_code];
break;
--
2.7.4
[toc] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2017-05-26 20:50 +0200 |
| Subject | Re: [PATCH 3/3] usb: max3421-hcd: Remove function name from dev_dbg calls |
| Message-ID | <tLstb-115-11@gated-at.bofh.it> |
| In reply to | #1651334 |
On Fri, May 26, 2017 at 02:32:42PM +0300, Alexander Amelkin wrote: > NOTE: > Please don't use the plain text here as a patch because it most probably is > corrupted by my webmail client. > Attached is a copy of the following text guaranteed to have correct > tabs/spaces. Why is this here???? What did you do to add this odd stuff to the patches? Please just use git send-email like everyone else does... thanks, greg k-h
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web