mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
base: Print label of component that has exceeded its quota.
This commit is contained in:
@@ -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' */
|
||||||
|
|||||||
Reference in New Issue
Block a user