diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-05-22 13:49:16 -0400 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-05-22 13:49:16 -0400 |
commit | 6a7ce82f02e8ce7391e40018749d93762abf6ee0 (patch) | |
tree | c9f4844585172a7f50f8686a6476e3911ef55201 /drivers/i2c/busses | |
parent | de81d2aaebc8e5e5167cb93f674c57705898e45e (diff) |
i2c-tiny-usb: Fix truncated adapter name
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Till Harbaum <lists@harbaum.org>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-tiny-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-tiny-usb.c b/drivers/i2c/busses/i2c-tiny-usb.c index 907999049d50..cb9abe7565a7 100644 --- a/drivers/i2c/busses/i2c-tiny-usb.c +++ b/drivers/i2c/busses/i2c-tiny-usb.c | |||
@@ -208,7 +208,7 @@ static int i2c_tiny_usb_probe(struct usb_interface *interface, | |||
208 | dev->adapter.class = I2C_CLASS_HWMON; | 208 | dev->adapter.class = I2C_CLASS_HWMON; |
209 | dev->adapter.algo = &usb_algorithm; | 209 | dev->adapter.algo = &usb_algorithm; |
210 | dev->adapter.algo_data = dev; | 210 | dev->adapter.algo_data = dev; |
211 | snprintf(dev->adapter.name, I2C_NAME_SIZE, | 211 | snprintf(dev->adapter.name, sizeof(dev->adapter.name), |
212 | "i2c-tiny-usb at bus %03d device %03d", | 212 | "i2c-tiny-usb at bus %03d device %03d", |
213 | dev->usb_dev->bus->busnum, dev->usb_dev->devnum); | 213 | dev->usb_dev->bus->busnum, dev->usb_dev->devnum); |
214 | 214 | ||