mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
net, net-lwip: wget: suppress console output when called by EFI
Functions called from EFI applications should not do console output. Refactor the wget code to implement this requirement. The wget_http_info struct is used to hold the boolean that signifies whether the output is allowed or not. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
@@ -570,6 +570,7 @@ enum wget_http_method {
|
||||
* Filled by client.
|
||||
* @hdr_cont_len: content length according to headers. Filled by wget
|
||||
* @headers: buffer for headers. Filled by wget.
|
||||
* @silent: do not print anything to the console. Filled by client.
|
||||
*/
|
||||
struct wget_http_info {
|
||||
enum wget_http_method method;
|
||||
@@ -580,6 +581,7 @@ struct wget_http_info {
|
||||
bool check_buffer_size;
|
||||
u32 hdr_cont_len;
|
||||
char *headers;
|
||||
bool silent;
|
||||
};
|
||||
|
||||
extern struct wget_http_info default_wget_info;
|
||||
|
||||
Reference in New Issue
Block a user