mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-16 02:28:24 +00:00
[downloader] Use a more meaningful error message when out of memory
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
9445cb9f8b
commit
cef3beaba4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user