diff options
author | Pete Zaitcev <zaitcev@redhat.com> | 2006-06-06 21:18:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-21 18:04:16 -0400 |
commit | 4bc203d997c0dc1eada4cc9681372c2f7a456c46 (patch) | |
tree | 9bbe49aeed4efb64b72559bff9c49e128371c37c /drivers/usb | |
parent | 34ab86e140e9810d6c5162971b6dcf01fcc0f11c (diff) |
[PATCH] USB: io_edgeport touch-up
Al Borchers suggested to do this in his review of my previous patch.
I guess that I skipped this initially because of my visceral dislike
of sizeof(data). But in this case it seems well localized.
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/io_edgeport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index ed976ab56684..b85d2156dfdc 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -2607,15 +2607,15 @@ static void get_manufacturing_desc (struct edgeport_serial *edge_serial) | |||
2607 | dbg(" BoardRev: %d", edge_serial->manuf_descriptor.BoardRev); | 2607 | dbg(" BoardRev: %d", edge_serial->manuf_descriptor.BoardRev); |
2608 | dbg(" NumPorts: %d", edge_serial->manuf_descriptor.NumPorts); | 2608 | dbg(" NumPorts: %d", edge_serial->manuf_descriptor.NumPorts); |
2609 | dbg(" DescDate: %d/%d/%d", edge_serial->manuf_descriptor.DescDate[0], edge_serial->manuf_descriptor.DescDate[1], edge_serial->manuf_descriptor.DescDate[2]+1900); | 2609 | dbg(" DescDate: %d/%d/%d", edge_serial->manuf_descriptor.DescDate[0], edge_serial->manuf_descriptor.DescDate[1], edge_serial->manuf_descriptor.DescDate[2]+1900); |
2610 | unicode_to_ascii(string, 30, | 2610 | unicode_to_ascii(string, sizeof(string), |
2611 | edge_serial->manuf_descriptor.SerialNumber, | 2611 | edge_serial->manuf_descriptor.SerialNumber, |
2612 | edge_serial->manuf_descriptor.SerNumLength/2); | 2612 | edge_serial->manuf_descriptor.SerNumLength/2); |
2613 | dbg(" SerialNumber: %s", string); | 2613 | dbg(" SerialNumber: %s", string); |
2614 | unicode_to_ascii(string, 30, | 2614 | unicode_to_ascii(string, sizeof(string), |
2615 | edge_serial->manuf_descriptor.AssemblyNumber, | 2615 | edge_serial->manuf_descriptor.AssemblyNumber, |
2616 | edge_serial->manuf_descriptor.AssemblyNumLength/2); | 2616 | edge_serial->manuf_descriptor.AssemblyNumLength/2); |
2617 | dbg(" AssemblyNumber: %s", string); | 2617 | dbg(" AssemblyNumber: %s", string); |
2618 | unicode_to_ascii(string, 30, | 2618 | unicode_to_ascii(string, sizeof(string), |
2619 | edge_serial->manuf_descriptor.OemAssyNumber, | 2619 | edge_serial->manuf_descriptor.OemAssyNumber, |
2620 | edge_serial->manuf_descriptor.OemAssyNumLength/2); | 2620 | edge_serial->manuf_descriptor.OemAssyNumLength/2); |
2621 | dbg(" OemAssyNumber: %s", string); | 2621 | dbg(" OemAssyNumber: %s", string); |