mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
layout: Make romentry.name
a pointer
This should provide more flexibility while we don't have to allocate 256B extra per layout entry. Change-Id: Ibb903113550ec13f43cbbd0a412c8f35fe1cf454 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/33515 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
@ -1338,7 +1338,11 @@ notfound:
|
||||
fallback->entry.start = 0;
|
||||
fallback->entry.end = flash->chip->total_size * 1024 - 1;
|
||||
fallback->entry.included = true;
|
||||
strcpy(fallback->entry.name, "complete flash");
|
||||
fallback->entry.name = strdup("complete flash");
|
||||
if (!fallback->entry.name) {
|
||||
msg_cerr("Failed to probe chip: %s\n", strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
tmp = flashbuses_to_text(flash->chip->bustype);
|
||||
msg_cinfo("%s %s flash chip \"%s\" (%d kB, %s) ", force ? "Assuming" : "Found",
|
||||
|
Reference in New Issue
Block a user