better error reporting for allocator issues

This commit is contained in:
Marcel Lütke Dreimann
2023-01-03 11:51:35 +01:00
parent 09b3d60a03
commit 946698d2e3
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
} }
); );

View File

@@ -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;
} }
); );