]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
km/common: fixed error in ethaddr (1-byte-shift)
authorThomas Herzmann <thomas.herzmann@keymile.com>
Fri, 4 May 2012 08:55:53 +0000 (10:55 +0200)
committerKim Phillips <kim.phillips@freescale.com>
Fri, 15 Jun 2012 22:12:40 +0000 (17:12 -0500)
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>
board/keymile/common/ivm.c

index 70d78457f25e8ab108a1ed282dbceccd5a93a13f..9bc3c21c9c64f99d5ed3d9283b83d9791d24d0e4 100644 (file)
@@ -218,7 +218,7 @@ static int ivm_analyze_block2(unsigned char *buf, int len)
                buf[4] = (val >> 16) & 0xff;
                buf[5] = (val >> 8) & 0xff;
                buf[6] = val & 0xff;
-               sprintf((char *)valbuf, "%pM", buf);
+               sprintf((char *)valbuf, "%pM", buf + 1);
        }
 #endif
 #ifdef MACH_TYPE_KM_KIRKWOOD