base: remove debug message from Allocator_guard
This commit is contained in:
parent
e6b87e9d20
commit
a9a8c65f53
|
@ -15,7 +15,6 @@
|
||||||
#define _INCLUDE__BASE__ALLOCATOR_GUARD_H_
|
#define _INCLUDE__BASE__ALLOCATOR_GUARD_H_
|
||||||
|
|
||||||
#include <base/allocator.h>
|
#include <base/allocator.h>
|
||||||
#include <base/log.h>
|
|
||||||
#include <base/stdint.h>
|
#include <base/stdint.h>
|
||||||
|
|
||||||
namespace Genode { class Allocator_guard; }
|
namespace Genode { class Allocator_guard; }
|
||||||
|
@ -76,12 +75,9 @@ class Genode::Allocator_guard : public Allocator
|
||||||
*/
|
*/
|
||||||
bool alloc(size_t size, void **out_addr) override
|
bool alloc(size_t size, void **out_addr) override
|
||||||
{
|
{
|
||||||
if ((_amount - _consumed) < (size + _allocator->overhead(size))) {
|
if ((_amount - _consumed) < (size + _allocator->overhead(size)))
|
||||||
warning("Quota exceeded! amount=", _amount,
|
|
||||||
", size=", (size + _allocator->overhead(size)),
|
|
||||||
", consumed=", _consumed);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
bool const b = _allocator->alloc(size, out_addr);
|
bool const b = _allocator->alloc(size, out_addr);
|
||||||
if (b)
|
if (b)
|
||||||
_consumed += size + _allocator->overhead(size);
|
_consumed += size + _allocator->overhead(size);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user