1
0
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:
Nico Huber
2019-06-15 14:56:19 +02:00
parent 4f213285d7
commit 70461a9524
5 changed files with 39 additions and 17 deletions

View File

@ -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",