summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/ttpci-eeprom.c
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-06-23 10:50:20 +0000
committerHolger Waechtler <devnull@localhost>2003-06-23 10:50:20 +0000
commitb58b28d87b948bdb47f582b4d380d36012519c99 (patch)
tree13b30758f28f47c92d4087293e63aa0154bd1552 /linux/drivers/media/dvb/ttpci/ttpci-eeprom.c
parent0a2f3526f1468f8a6703c8f597517678464f0046 (diff)
downloadmediapointer-dvb-s2-b58b28d87b948bdb47f582b4d380d36012519c99.tar.gz
mediapointer-dvb-s2-b58b28d87b948bdb47f582b4d380d36012519c99.tar.bz2
use proposed mac where possible, fix the uninitialized net->addr_len bug, make sume printk() dprintk()
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/ttpci-eeprom.c')
-rw-r--r--linux/drivers/media/dvb/ttpci/ttpci-eeprom.c6
1 files changed, 3 insertions, 3 deletions
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;