diff options
author | Sven Gothel <[email protected]> | 2020-08-24 05:50:00 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-08-24 05:50:00 +0200 |
commit | 7e4559d5e8e1cc920a0c7ad4c1cabbe4d451706d (patch) | |
tree | af860378587ed91962f19ecfc984bf3771349c63 /java/jni | |
parent | 698c1871e2c45f3970eae77d0a973d2360331c32 (diff) |
Adapt to new DBG_PRINT(..) semantics, reduce verbosity, use specific macros for special cases (e.g. GATT_PRINT, ..)
Diffstat (limited to 'java/jni')
-rw-r--r-- | java/jni/helper_base.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/java/jni/helper_base.cxx b/java/jni/helper_base.cxx index 33f12e0..de85ce2 100644 --- a/java/jni/helper_base.cxx +++ b/java/jni/helper_base.cxx @@ -31,9 +31,6 @@ #include <stdexcept> #include <vector> -// #define VERBOSE_ON 1 -#include <dbt_debug.hpp> - #include "helper_base.hpp" #define JAVA_MAIN_PACKAGE "org/tinyb" @@ -281,7 +278,7 @@ bool java_exception_check(JNIEnv *env, const char* file, int line) jthrowable e = env->ExceptionOccurred(); if( nullptr != e ) { #if 1 - INFO_PRINT("Java exception occurred @ %s : %d and forwarded.", file, line); + fprintf(stderr, "Java exception occurred @ %s : %d and forwarded.", file, line); fflush(stderr); // ExceptionDescribe prints an exception and a backtrace of the stack to a system error-reporting channel, such as stderr. // The pending exception is cleared as a side-effect of calling this function. This is a convenience routine provided for debugging. env->ExceptionDescribe(); @@ -297,7 +294,7 @@ void java_exception_check_and_throw(JNIEnv *env, const char* file, int line) { jthrowable e = env->ExceptionOccurred(); if( nullptr != e ) { - ERR_PRINT("Java exception occurred @ %s : %d and forwarded.", file, line); + fprintf(stderr, "Java exception occurred @ %s : %d and forwarded.", file, line); fflush(stderr); // ExceptionDescribe prints an exception and a backtrace of the stack to a system error-reporting channel, such as stderr. // The pending exception is cleared as a side-effect of calling this function. This is a convenience routine provided for debugging. env->ExceptionDescribe(); |