diff options
author | David Fries <david@fries.net> | 2008-10-16 01:05:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:21:50 -0400 |
commit | 95cfaebf61dff28612bd280d89efc6e2c6716dfa (patch) | |
tree | fc38475354ff92f147692b8e2c7fd8538d6e52a1 | |
parent | cadd486cfc838ead0ad899db129cff9f61ef4267 (diff) |
W1: ds2490.c correct print message
Corrected print message, it was writing not reading, this also prints the
endpoint used for the write instead of hardcoding it. Failed to write
1-wire data to ep0x%x: err=%d.
Signed-off-by: David Fries <david@fries.net>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/w1/masters/ds2490.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/w1/masters/ds2490.c b/drivers/w1/masters/ds2490.c index b63b5e044a4c..c8365fb20b4f 100644 --- a/drivers/w1/masters/ds2490.c +++ b/drivers/w1/masters/ds2490.c | |||
@@ -341,7 +341,8 @@ static int ds_send_data(struct ds_device *dev, unsigned char *buf, int len) | |||
341 | count = 0; | 341 | count = 0; |
342 | err = usb_bulk_msg(dev->udev, usb_sndbulkpipe(dev->udev, dev->ep[EP_DATA_OUT]), buf, len, &count, 1000); | 342 | err = usb_bulk_msg(dev->udev, usb_sndbulkpipe(dev->udev, dev->ep[EP_DATA_OUT]), buf, len, &count, 1000); |
343 | if (err < 0) { | 343 | if (err < 0) { |
344 | printk(KERN_ERR "Failed to read 1-wire data from 0x02: err=%d.\n", err); | 344 | printk(KERN_ERR "Failed to write 1-wire data to ep0x%x: " |
345 | "err=%d.\n", dev->ep[EP_DATA_OUT], err); | ||
345 | return err; | 346 | return err; |
346 | } | 347 | } |
347 | 348 | ||