
21 May
2009
21 May
'09
9:57 p.m.
On Thu, May 21, 2009 at 2:34 PM, Haiying Wang Haiying.Wang@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