From b58b28d87b948bdb47f582b4d380d36012519c99 Mon Sep 17 00:00:00 2001 From: Holger Waechtler Date: Mon, 23 Jun 2003 10:50:20 +0000 Subject: use proposed mac where possible, fix the uninitialized net->addr_len bug, make sume printk() dprintk() --- linux/drivers/media/dvb/ttpci/ttpci-eeprom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linux/drivers/media/dvb/ttpci/ttpci-eeprom.c') diff --git a/linux/drivers/media/dvb/ttpci/ttpci-eeprom.c b/linux/drivers/media/dvb/ttpci/ttpci-eeprom.c index 3f02e8068..188de32bb 100644 --- a/linux/drivers/media/dvb/ttpci/ttpci-eeprom.c +++ b/linux/drivers/media/dvb/ttpci/ttpci-eeprom.c @@ -39,7 +39,7 @@ #include "dvb_i2c.h" #include "dvb_functions.h" -#if 0 +#if 1 #define dprintk(x...) printk(x) #else #define dprintk(x...) @@ -106,11 +106,11 @@ int ttpci_eeprom_parse_mac (struct dvb_i2c_bus *i2c) decodeMAC(decodedMAC, encodedMAC); memcpy(i2c->adapter->proposed_mac, decodedMAC, 6); - dprintk("%s adapter %i has MAC addr = %x:%x:%x:%x:%x:%x\n", + dprintk("%s adapter %i has MAC addr = %02x:%02x:%02x:%02x:%02x:%02x\n", i2c->adapter->name, i2c->adapter->num, decodedMAC[0],decodedMAC[1],decodedMAC[2], decodedMAC[3],decodedMAC[4],decodedMAC[5]); - dprintk("encoded MAC was %x:%x:%x:%x:%x:%x\n", + dprintk("encoded MAC was %02x:%02x:%02x:%02x:%02x:%02x\n", encodedMAC[0],encodedMAC[1],encodedMAC[2], encodedMAC[3],encodedMAC[4],encodedMAC[5]); return 0; -- cgit v1.2.3