project_files/Android-build/SDL-android-project/jni/src/hedgewars_main.c
branchhedgeroid
changeset 5934 9f05a0f43003
parent 5369 0ce1ef75c08f
child 8465 9114b50fed82
--- a/project_files/Android-build/SDL-android-project/jni/src/hedgewars_main.c	Fri Sep 16 18:17:16 2011 +0200
+++ b/project_files/Android-build/SDL-android-project/jni/src/hedgewars_main.c	Fri Sep 16 18:24:50 2011 +0200
@@ -17,8 +17,8 @@
         __android_log_print(ANDROID_LOG_INFO, TAG, "HWEngine being loaded");
 	handle = dlopen("libhwengine.so", RTLD_NOW|RTLD_GLOBAL);
 	if(!handle){
-		__android_log_print(ANDROID_LOG_INFO, "foo", dlerror());
-		__android_log_print(ANDROID_LOG_INFO, "foo", "error dlopen");
+		__android_log_print(ANDROID_LOG_INFO, TAG, dlerror());
+		__android_log_print(ANDROID_LOG_INFO, TAG, "error dlopen");
 		exit(EXIT_FAILURE);
 	}
 	dlerror();
@@ -28,13 +28,13 @@
 
 	Game = (HWEngine_Game) dlsym(handle,"Game");
 	if((error = dlerror()) != NULL){
-		__android_log_print(ANDROID_LOG_INFO, "foo", error);
-		__android_log_print(ANDROID_LOG_INFO, "foo", "error dlsym");
+		__android_log_print(ANDROID_LOG_INFO, TAG, error);
+		__android_log_print(ANDROID_LOG_INFO, TAG, "error dlsym");
 		exit(EXIT_FAILURE);
 	}
-	__android_log_print(ANDROID_LOG_INFO, "foo", "dlsym succeeded");
+	__android_log_print(ANDROID_LOG_INFO, TAG, "dlsym succeeded");
 	Game(argv);
-	__android_log_print(ANDROID_LOG_INFO, "foo", "Game() succeeded");
+	__android_log_print(ANDROID_LOG_INFO, TAG, "Game() ended");
 
 	dlclose(handle);
 }