Ver código fonte

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 anos atrás
pai
commit
cef3beaba4
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/core/downloader.c

+ 1
- 1
src/core/downloader.c Ver arquivo

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

Carregando…
Cancelar
Salvar