mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-01 16:25:20 +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:
parent
0395c03c9d
commit
97b9bc018e
@ -605,11 +605,10 @@ char * append_device_specific_cmdline_gta02(char * cmdline)
|
|||||||
|
|
||||||
cmdline += strlen(strcpy(cmdline, " g_ether.host_addr="));
|
cmdline += strlen(strcpy(cmdline, " g_ether.host_addr="));
|
||||||
cmdline += strlen(strcpy(cmdline, &mac[2]));
|
cmdline += strlen(strcpy(cmdline, &mac[2]));
|
||||||
*cmdline += ' ' ;
|
|
||||||
|
|
||||||
cmdline += strlen(strcpy(cmdline, " g_ether.dev_addr="));
|
cmdline += strlen(strcpy(cmdline, " g_ether.dev_addr="));
|
||||||
cmdline += strlen(strcpy(cmdline, &mac[2]));
|
cmdline += strlen(strcpy(cmdline, &mac[2]));
|
||||||
*cmdline += ' ' ;
|
*cmdline++ += ' ' ;
|
||||||
bail:
|
bail:
|
||||||
this_kernel = real_kernel;
|
this_kernel = real_kernel;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user