Change wrong "LAR: NO FILE FOUND!" message to "LAR: File not found!".
The message appears if a file has not been found in the LAR archive and is triggered even by lookup routines. Normal capitalization helps reducing the frightening effect of the message. Correct a few typos in other areas of the LAR code as well. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@538 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
aa9bb6e81b
commit
73a83c1f17
2 changed files with 9 additions and 5 deletions
|
|
@ -141,7 +141,7 @@ int find_file(const struct mem_file *archive, const char *filename, struct mem_f
|
|||
walk += (ntohl(header->offset) + ntohl(header->len) - 1)
|
||||
& 0xfffffff0;
|
||||
}
|
||||
printk(BIOS_SPEW, "LAR: NO FILE FOUND!\n");
|
||||
printk(BIOS_SPEW, "LAR: File not found!\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ int iself(char *filebuf)
|
|||
|
||||
/**
|
||||
* Output all the ELF segments for a given file
|
||||
* @param lar The LAR Archoe
|
||||
* @param lar The LAR archive
|
||||
* @param name The LAR name
|
||||
* @param filebuf The ELF file
|
||||
* @param filelen Size of the ELF file
|
||||
|
|
@ -88,9 +88,13 @@ int output_elf_segments(struct lar *lar, char *name, char *filebuf,
|
|||
u32 complen;
|
||||
|
||||
/* Allocate a temporary buffer to compress into - this is unavoidable,
|
||||
because we need to make sure that the compressed data will fit in
|
||||
the LAR, and we won't know the size of the compressed data until
|
||||
we actually compress it */
|
||||
* because we need to make sure that the compressed data will fit in
|
||||
* the LAR, and we won't know the size of the compressed data until
|
||||
* we actually compress it.
|
||||
* FIXME: In case the compressed file is bigger than the original,
|
||||
* we corrupt memory. Compute maximum size increase and allocate that
|
||||
* on top of the file length.
|
||||
*/
|
||||
|
||||
temp = calloc(filelen, 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue