[PATCH] namedev.c strcat tweak
02-namedev.c-strcat-tweak.diff o cat the substitution to the already known end of the string instead of searching it another time
This commit is contained in:
parent
f7b4eca455
commit
6968d494d7
|
@ -514,7 +514,7 @@ static void apply_format(struct udevice *udev, unsigned char *string)
|
||||||
case 'b':
|
case 'b':
|
||||||
if (strlen(udev->bus_id) == 0)
|
if (strlen(udev->bus_id) == 0)
|
||||||
break;
|
break;
|
||||||
strcat(string, udev->bus_id);
|
strcat(pos, udev->bus_id);
|
||||||
dbg("substitute bus_id '%s'", udev->bus_id);
|
dbg("substitute bus_id '%s'", udev->bus_id);
|
||||||
break;
|
break;
|
||||||
case 'n':
|
case 'n':
|
||||||
|
|
Loading…
Reference in a new issue