From: Thomas Herzmann Date: Fri, 4 May 2012 08:55:53 +0000 (+0200) Subject: km/common: fixed error in ethaddr (1-byte-shift) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d8f87f6c4ba22ecab84371206cac2e17913eba60;p=project%2Fbcm63xx%2Fu-boot.git km/common: fixed error in ethaddr (1-byte-shift) The MAC address begins at offset 1. Signed-off-by: Thomas Herzmann Signed-off-by: Holger Brunck Signed-off-by: Kim Phillips --- diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c index 70d78457f2..9bc3c21c9c 100644 --- a/board/keymile/common/ivm.c +++ b/board/keymile/common/ivm.c @@ -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