2008-07-12 21:20:09

by Simon Arlott

[permalink] [raw]
Subject: [PATCH] cxacru: Fix printk format flag in error message

"#%x" should have been "%#x"

Signed-off-by: Simon Arlott <[email protected]>
---
drivers/usb/atm/cxacru.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index 5ea3093..2ba43c4 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -602,7 +602,7 @@ static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_requ
offd = le32_to_cpu(buf[offb++]);
if (offd >= size) {
if (printk_ratelimit())
- usb_err(instance->usbatm, "wrong index #%x in response to cm #%x\n",
+ usb_err(instance->usbatm, "wrong index %#x in response to cm %#x\n",
offd, cm);
ret = -EIO;
goto cleanup;
--
1.5.6.1

--
Simon Arlott


2008-08-06 23:14:29

by Greg KH

[permalink] [raw]
Subject: patch usb-cxacru-fix-printk-format-flag-in-error-message.patch added to gregkh-2.6 tree


This is a note to let you know that I've just added the patch titled

Subject: USB: cxacru: Fix printk format flag in error message

to my gregkh-2.6 tree. Its filename is

usb-cxacru-fix-printk-format-flag-in-error-message.patch

This tree can be found at
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/


>From [email protected] Wed Aug 6 15:50:52 2008
From: Simon Arlott <[email protected]>
Date: Sat, 12 Jul 2008 22:19:48 +0100
Subject: USB: cxacru: Fix printk format flag in error message
To: Greg Kroah-Hartman <[email protected]>
Cc: Linux Kernel Mailing List <[email protected]>
Message-ID: <[email protected]>


"#%x" should have been "%#x"

Signed-off-by: Simon Arlott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
drivers/usb/atm/cxacru.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -602,7 +602,7 @@ static int cxacru_cm_get_array(struct cx
offd = le32_to_cpu(buf[offb++]);
if (offd >= size) {
if (printk_ratelimit())
- usb_err(instance->usbatm, "wrong index #%x in response to cm #%x\n",
+ usb_err(instance->usbatm, "wrong index %#x in response to cm %#x\n",
offd, cm);
ret = -EIO;
goto cleanup;


Patches currently in gregkh-2.6 which might be from [email protected] are

usb.current/usb-move-usb-mon-up-to-misc-options-in-kconfig.patch
usb.current/usb-cxacru-fix-printk-format-flag-in-error-message.patch