From f5ed9c1e43014405e1e4252824f17d95f31c09cc Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Mon, 11 Mar 2024 14:25:12 +0100 Subject: [PATCH] base: Print label of component that has exceeded its quota. --- repos/base/src/core/include/account.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/repos/base/src/core/include/account.h b/repos/base/src/core/include/account.h index fda6370ad6..ca6b72ee17 100644 --- a/repos/base/src/core/include/account.h +++ b/repos/base/src/core/include/account.h @@ -147,11 +147,16 @@ class Genode::Account /* make sure to stay within the initial limit */ if (amount.value > _transferrable_quota().value) + { + Genode::log("Limit exceeded : ", _label); throw Limit_exceeded(); + } - /* downgrade from this account */ - if (!_quota_guard.try_downgrade(amount)) - throw Limit_exceeded(); + /* downgrade from this account */ + if (!_quota_guard.try_downgrade(amount)) { + Genode::log("Limit exceeded: ", _label); + throw Limit_exceeded(); + } } /* credit to 'other' */