From 33c71d1d2c4f5c3a2e124b70c8a1bdd195c01c1a Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 10 Mar 2022 16:37:44 +0100 Subject: [PATCH] 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. --- repos/dde_linux/src/drivers/usb_host/raw.cc | 4 ++-- repos/os/src/lib/genode_c_api/usb.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/repos/dde_linux/src/drivers/usb_host/raw.cc b/repos/dde_linux/src/drivers/usb_host/raw.cc index a809fca424..43e71cb112 100644 --- a/repos/dde_linux/src/drivers/usb_host/raw.cc +++ b/repos/dde_linux/src/drivers/usb_host/raw.cc @@ -1246,8 +1246,8 @@ class Usb::Root : public Genode::Root_component throw Insufficient_ram_quota(); if (tx_buf_size > ram_quota - session_size) { - error("Insufficient 'ram_quota',got ", ram_quota, " need ", - tx_buf_size + session_size); + warning("Insufficient RAM quota, got ", ram_quota, " need ", + tx_buf_size + session_size); throw Insufficient_ram_quota(); } diff --git a/repos/os/src/lib/genode_c_api/usb.cc b/repos/os/src/lib/genode_c_api/usb.cc index a859859766..76d2b318fe 100644 --- a/repos/os/src/lib/genode_c_api/usb.cc +++ b/repos/os/src/lib/genode_c_api/usb.cc @@ -549,8 +549,8 @@ genode_usb_session * ::Root::_create_session(const char * args, throw Insufficient_ram_quota(); if (tx_buf_size > ram_quota - session_size) { - error("Insufficient 'ram_quota',got ", ram_quota, " need ", - tx_buf_size + session_size); + warning("Insufficient RAM quota, got ", ram_quota, " need ", + tx_buf_size + session_size); throw Insufficient_ram_quota(); }