util: fix implicit declaration warning 52/157552/3
authorMinkee Lee <minkee.lee@samsung.com>
Wed, 25 Oct 2017 04:52:27 +0000 (13:52 +0900)
committerMinkee Lee <minkee.lee@samsung.com>
Wed, 25 Oct 2017 06:31:18 +0000 (15:31 +0900)
Change-Id: Ia5ff13cb1d9ac6827832205107c7243d238b21c7
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
util/oslib-posix.c

index 7a5cb35..1a22104 100644 (file)
@@ -77,9 +77,11 @@ int qemu_daemon(int nochdir, int noclose)
 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;