Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(630)

Unified Diff: runtime/embedders/openglui/common/log.h

Issue 12340036: Android improvements: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/embedders/openglui/common/log.h
===================================================================
--- runtime/embedders/openglui/common/log.h (revision 18917)
+++ runtime/embedders/openglui/common/log.h (working copy)
@@ -7,8 +7,16 @@
#ifndef ANDROID
#include <stdio.h>
-#define LOGI(...) fprintf(stdout, __VA_ARGS__)
-#define LOGE(...) fprintf(stderr, __VA_ARGS__)
+#define LOGI(...) do {\
+ fprintf(stdout, __VA_ARGS__);\
+ fprintf(stdout, "\n");\
+ fflush(stdout);\
+ } while (0)
+#define LOGE(...) do { \
+ fprintf(stderr, __VA_ARGS__);\
+ fprintf(stderr, "\n");\
+ fflush(stderr);\
+ } while (0)
#else
#include "embedders/openglui/android/android_log.h"
#endif
« no previous file with comments | « runtime/embedders/openglui/common/lifecycle_handler.h ('k') | runtime/embedders/openglui/common/sound_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698