mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 15:56:41 +00:00
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.
This commit is contained in:
parent
040e331f77
commit
1d56c3d3aa
@ -142,12 +142,8 @@ class Genode::Root_component : public Rpc_object<Typed_root<SESSION_TYPE> >,
|
|||||||
|
|
||||||
size_t needed = sizeof(SESSION_TYPE) + md_alloc()->overhead(sizeof(SESSION_TYPE));
|
size_t needed = sizeof(SESSION_TYPE) + md_alloc()->overhead(sizeof(SESSION_TYPE));
|
||||||
|
|
||||||
if (needed > ram_quota.value) {
|
if (needed > ram_quota.value)
|
||||||
warning("insufficient ram quota "
|
|
||||||
"for ", SESSION_TYPE::service_name(), " session, "
|
|
||||||
"provided=", ram_quota, ", required=", needed);
|
|
||||||
throw Insufficient_ram_quota();
|
throw Insufficient_ram_quota();
|
||||||
}
|
|
||||||
|
|
||||||
Ram_quota const remaining_ram_quota { ram_quota.value - needed };
|
Ram_quota const remaining_ram_quota { ram_quota.value - needed };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user