From: Timur Tabi Date: Thu, 21 May 2009 14:57:09 -0500 Subject: [U-Boot] [PATCH 10/15 v2] Update the number of ethxaddr in reading system eeprom In-Reply-To: <1242934481-9345-1-git-send-email-Haiying.Wang@freescale.com> References: <1242934481-9345-1-git-send-email-Haiying.Wang@freescale.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, May 21, 2009 at 2:34 PM, Haiying Wang wrote: > + ? ? ? ? ? ? ? printf("Warning: The number of MAC address is greater" > + ? ? ? ? ? ? ? ? ? ? ? " than MAX_NUM_PORTS, force it to MAX_NUM_PORTS.\n"); I think you meant to do this: printf("Warning: The number of MAC address is greater" " than %u, force it to %u.\n", MAX_NUM_PORTS, MAX_NUM_PORTS); But since you defined MAX_NUM_PORTS, you should also do this: u8 mac[MAX_NUM_PORTS][6]; /* 0x42 - 0x71 MAC addresses */ To indicate where the dependency on 8 comes from. -- Timur Tabi Linux kernel developer at Freescale