david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[downloader] Use a more meaningful error message when out of memory

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2012-03-27 00:43:07 +01:00
parent 9445cb9f8b
commit cef3beaba4
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ static int downloader_ensure_size ( struct downloader *downloader,
if ( ! new_buffer ) {
DBGC ( downloader, "Downloader %p could not extend buffer to "
"%zd bytes\n", downloader, len );
return -ENOBUFS;
return -ENOSPC;
}
downloader->image->data = new_buffer;
downloader->image->len = len;