km/common: fixed error in ethaddr (1-byte-shift)
The MAC address begins at offset 1. Signed-off-by: Thomas Herzmann <thomas.herzmann@keymile.com> Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
This commit is contained in:
parent
c67d2ff217
commit
d8f87f6c4b
|
@ -218,7 +218,7 @@ static int ivm_analyze_block2(unsigned char *buf, int len)
|
||||||
buf[4] = (val >> 16) & 0xff;
|
buf[4] = (val >> 16) & 0xff;
|
||||||
buf[5] = (val >> 8) & 0xff;
|
buf[5] = (val >> 8) & 0xff;
|
||||||
buf[6] = val & 0xff;
|
buf[6] = val & 0xff;
|
||||||
sprintf((char *)valbuf, "%pM", buf);
|
sprintf((char *)valbuf, "%pM", buf + 1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef MACH_TYPE_KM_KIRKWOOD
|
#ifdef MACH_TYPE_KM_KIRKWOOD
|
||||||
|
|
Loading…
Reference in a new issue