From 381acf57d89d53f1e53a20b0fd55995541c7889d Mon Sep 17 00:00:00 2001 From: Minkee Lee Date: Wed, 25 Oct 2017 13:52:27 +0900 Subject: [PATCH] util: fix implicit declaration warning Change-Id: Ia5ff13cb1d9ac6827832205107c7243d238b21c7 Signed-off-by: Minkee Lee --- util/oslib-posix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 7a5cb35..1a22104 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; -- 2.7.4