From 1d56c3d3aa61fde716a3e56a33ecafe1a9b77081 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 6 Sep 2017 15:49:36 +0200 Subject: [PATCH] base: remove non-critical quota messages In nested scenarios like driver_manager.run, the initial session quota for IO_PORT, IO_PORT, and IRQ sessions is expectedly insufficient. However, the condition is properly handled by re-attemping the request with a slightly increased quota. Still, core prints a warning each time the request is denied for quota reasons, which spams the log. This patch removes the non-critical message. --- repos/base/include/root/component.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/repos/base/include/root/component.h b/repos/base/include/root/component.h index 5885cec74..7ee2f797c 100644 --- a/repos/base/include/root/component.h +++ b/repos/base/include/root/component.h @@ -142,12 +142,8 @@ class Genode::Root_component : public Rpc_object >, size_t needed = sizeof(SESSION_TYPE) + md_alloc()->overhead(sizeof(SESSION_TYPE)); - if (needed > ram_quota.value) { - warning("insufficient ram quota " - "for ", SESSION_TYPE::service_name(), " session, " - "provided=", ram_quota, ", required=", needed); + if (needed > ram_quota.value) throw Insufficient_ram_quota(); - } Ram_quota const remaining_ram_quota { ram_quota.value - needed };