base: Print label of component that has exceeded its quota.

This commit is contained in:
Michael Mueller
2024-03-11 14:25:12 +01:00
parent 6609ad03e6
commit f5ed9c1e43

View File

@@ -147,11 +147,16 @@ class Genode::Account
/* make sure to stay within the initial limit */ /* make sure to stay within the initial limit */
if (amount.value > _transferrable_quota().value) if (amount.value > _transferrable_quota().value)
{
Genode::log("Limit exceeded : ", _label);
throw Limit_exceeded(); throw Limit_exceeded();
}
/* downgrade from this account */ /* downgrade from this account */
if (!_quota_guard.try_downgrade(amount)) if (!_quota_guard.try_downgrade(amount)) {
throw Limit_exceeded(); Genode::log("Limit exceeded: ", _label);
throw Limit_exceeded();
}
} }
/* credit to 'other' */ /* credit to 'other' */