From: Minkee Lee Date: Wed, 25 Oct 2017 04:52:27 +0000 (+0900) Subject: util: fix implicit declaration warning X-Git-Tag: TizenStudio_2.0_p2.3.2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F52%2F157552%2F3;p=sdk%2Femulator%2Fqemu.git util: fix implicit declaration warning Change-Id: Ia5ff13cb1d9ac6827832205107c7243d238b21c7 Signed-off-by: Minkee Lee --- 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;