Change-Id: Ia5ff13cb1d9ac6827832205107c7243d238b21c7
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
void *qemu_oom_check(void *ptr)
{
if (ptr == NULL) {
-// CONFIG_MARU MODIFICATION
- //fprintf(stderr, "Failed to allocate memory: %s\n", strerror(errno));
+#ifdef CONFIG_MARU
error_report("Failed to allocate memory: %s", strerror(errno));
+#else
+ fprintf(stderr, "Failed to allocate memory: %s\n", strerror(errno));
+#endif
abort();
}
return ptr;