[U-Boot] [PATCH 10/15 v2] Update the number of ethxaddr in reading system eeprom

Timur Tabi timur at freescale.com
Thu May 21 21:57:09 CEST 2009


On Thu, May 21, 2009 at 2:34 PM, Haiying Wang
<Haiying.Wang at freescale.com> 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


More information about the U-Boot mailing list