diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb/af9015.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/af9015.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c index 26690dfb3260..00fbaf56c61b 100644 --- a/drivers/media/dvb/dvb-usb/af9015.c +++ b/drivers/media/dvb/dvb-usb/af9015.c | |||
@@ -538,24 +538,22 @@ exit: | |||
538 | /* dump eeprom */ | 538 | /* dump eeprom */ |
539 | static int af9015_eeprom_dump(struct dvb_usb_device *d) | 539 | static int af9015_eeprom_dump(struct dvb_usb_device *d) |
540 | { | 540 | { |
541 | char buf[4+3*16+1], buf2[4]; | ||
542 | u8 reg, val; | 541 | u8 reg, val; |
543 | 542 | ||
544 | for (reg = 0; ; reg++) { | 543 | for (reg = 0; ; reg++) { |
545 | if (reg % 16 == 0) { | 544 | if (reg % 16 == 0) { |
546 | if (reg) | 545 | if (reg) |
547 | deb_info("%s\n", buf); | 546 | deb_info(KERN_CONT "\n"); |
548 | sprintf(buf, "%02x: ", reg); | 547 | deb_info(KERN_DEBUG "%02x:", reg); |
549 | } | 548 | } |
550 | if (af9015_read_reg_i2c(d, AF9015_I2C_EEPROM, reg, &val) == 0) | 549 | if (af9015_read_reg_i2c(d, AF9015_I2C_EEPROM, reg, &val) == 0) |
551 | sprintf(buf2, "%02x ", val); | 550 | deb_info(KERN_CONT " %02x", val); |
552 | else | 551 | else |
553 | strcpy(buf2, "-- "); | 552 | deb_info(KERN_CONT " --"); |
554 | strcat(buf, buf2); | ||
555 | if (reg == 0xff) | 553 | if (reg == 0xff) |
556 | break; | 554 | break; |
557 | } | 555 | } |
558 | deb_info("%s\n", buf); | 556 | deb_info(KERN_CONT "\n"); |
559 | return 0; | 557 | return 0; |
560 | } | 558 | } |
561 | 559 | ||