summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/serial/ftdi_sio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 4032a675643c..546171289869 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -1741,10 +1741,10 @@ static ssize_t store_event_char(struct device *dev,
unsigned int v;
int rv;
- if (kstrtouint(valbuf, 10, &v) || v >= 0x200)
+ if (kstrtouint(valbuf, 0, &v) || v >= 0x200)
return -EINVAL;
- dev_dbg(&port->dev, "%s: setting event char = %i\n", __func__, v);
+ dev_dbg(&port->dev, "%s: setting event char = 0x%03x\n", __func__, v);
rv = usb_control_msg(udev,
usb_sndctrlpipe(udev, 0),