usb_host: change error to warning message

An insufficient session quota as offered by a USB client is not an
erroneous situation of the USB driver.
This commit is contained in:
Norman Feske 2022-03-10 16:37:44 +01:00 committed by Christian Helmuth
parent b4aa0a20dd
commit 33c71d1d2c
2 changed files with 4 additions and 4 deletions

View File

@ -1246,8 +1246,8 @@ class Usb::Root : public Genode::Root_component<Session_component>
throw Insufficient_ram_quota(); throw Insufficient_ram_quota();
if (tx_buf_size > ram_quota - session_size) { if (tx_buf_size > ram_quota - session_size) {
error("Insufficient 'ram_quota',got ", ram_quota, " need ", warning("Insufficient RAM quota, got ", ram_quota, " need ",
tx_buf_size + session_size); tx_buf_size + session_size);
throw Insufficient_ram_quota(); throw Insufficient_ram_quota();
} }

View File

@ -549,8 +549,8 @@ genode_usb_session * ::Root::_create_session(const char * args,
throw Insufficient_ram_quota(); throw Insufficient_ram_quota();
if (tx_buf_size > ram_quota - session_size) { if (tx_buf_size > ram_quota - session_size) {
error("Insufficient 'ram_quota',got ", ram_quota, " need ", warning("Insufficient RAM quota, got ", ram_quota, " need ",
tx_buf_size + session_size); tx_buf_size + session_size);
throw Insufficient_ram_quota(); throw Insufficient_ram_quota();
} }