summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinkee Lee <minkee.lee@samsung.com>2017-10-25 13:52:27 +0900
committerMinkee Lee <minkee.lee@samsung.com>2017-10-25 15:31:18 +0900
commit381acf57d89d53f1e53a20b0fd55995541c7889d (patch)
treefcf570c0d1b43cd3480526278fdf4a3edabf6c3a
parentdc939c07683abbd9cacd13006968301695134efc (diff)
downloadqemu-381acf57d89d53f1e53a20b0fd55995541c7889d.tar.gz
qemu-381acf57d89d53f1e53a20b0fd55995541c7889d.tar.bz2
qemu-381acf57d89d53f1e53a20b0fd55995541c7889d.zip
util: fix implicit declaration warning
Change-Id: Ia5ff13cb1d9ac6827832205107c7243d238b21c7 Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
-rw-r--r--util/oslib-posix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/oslib-posix.c b/util/oslib-posix.c
index 7a5cb35f2f..1a221043dc 100644
--- a/util/oslib-posix.c
+++ b/util/oslib-posix.c
@@ -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;