Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b268f484f9d7ce91301091e0fb2c80e9e8caa3df
Commit:     b268f484f9d7ce91301091e0fb2c80e9e8caa3df
Parent:     09b7002d68cfa1c45cc413a0c7cca399c25a57c6
Author:     Jan Engelhardt <[EMAIL PROTECTED]>
AuthorDate: Thu May 17 17:16:44 2007 +0200
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Tue May 22 23:45:50 2007 -0700

    USB: Fix debug output of ark3116
    
    Fix debug output. Previously, it would output "0xFFFFFFB0" on 32-bit
    archs (and probably "0xFFFFFFFFFFFFFFB0" on 64-bits), because buf is
    taken as signed char, which is promoted to signed int, while %x always
    expects an unsigned int.
    
    Signed-off-by: Jan Engelhardt <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 drivers/usb/serial/ark3116.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c
index ea2175b..fe43712 100644
--- a/drivers/usb/serial/ark3116.c
+++ b/drivers/usb/serial/ark3116.c
@@ -63,7 +63,8 @@ static inline void ARK3116_RCV(struct usb_serial *serial, int 
seq,
                                 request, requesttype, value, index,
                                 buf, 0x0000001, 1000);
        if (result)
-               dbg("%03d < %d bytes [0x%02X]", seq, result, buf[0]);
+               dbg("%03d < %d bytes [0x%02X]", seq, result,
+                   ((unsigned char *)buf)[0]);
        else
                dbg("%03d < 0 bytes", seq);
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to