mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
better error reporting for allocator issues
This commit is contained in:
@@ -71,8 +71,8 @@ void* gpgpu_genode::aligned_alloc(uint32_t alignment, uint32_t size)
|
|||||||
|
|
||||||
[&] (void *ptr) { return ptr; },
|
[&] (void *ptr) { return ptr; },
|
||||||
|
|
||||||
[&] (Genode::Range_allocator::Alloc_error) -> void * {
|
[&] (Genode::Range_allocator::Alloc_error e) -> void * {
|
||||||
Genode::error("[GPU] Error in driver allocation!");
|
Genode::error("[GPU] Error in driver allocation: ", e);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ void* cl_genode::aligned_alloc(Genode::uint32_t alignment, Genode::uint32_t size
|
|||||||
|
|
||||||
[&] (void *ptr) { return ptr; },
|
[&] (void *ptr) { return ptr; },
|
||||||
|
|
||||||
[&] (Genode::Range_allocator::Alloc_error) -> void * {
|
[&] (Genode::Range_allocator::Alloc_error e) -> void * {
|
||||||
Genode::error("[OCL] Error in driver allocation!");
|
Genode::error("[OCL] Error in driver allocation: ", e);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user