1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-22 11:45:19 +02:00

fix-trailing-space-ethernet-mac.patch

There's no trailing space after the last mac address addition, it
was broken before the recent patch adding the second mac address.

Also, we don't need to add the first space by hand if it's unconditionally
added in the string afterwards.

Reported-by: Werner Almesberger <werner@openmoko.org>
Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green 2009-02-20 04:57:47 +00:00 committed by Andy Green
parent 0395c03c9d
commit 97b9bc018e

View File

@ -605,11 +605,10 @@ char * append_device_specific_cmdline_gta02(char * cmdline)
cmdline += strlen(strcpy(cmdline, " g_ether.host_addr="));
cmdline += strlen(strcpy(cmdline, &mac[2]));
*cmdline += ' ' ;
cmdline += strlen(strcpy(cmdline, " g_ether.dev_addr="));
cmdline += strlen(strcpy(cmdline, &mac[2]));
*cmdline += ' ' ;
*cmdline++ += ' ' ;
bail:
this_kernel = real_kernel;