diff options
author | 2017-09-25 09:42:42 +0200 | |
---|---|---|
committer | 2017-10-03 11:04:18 +0000 | |
commit | b4d3c96f89bb832203092dcc94eeaa11a906594c (patch) | |
tree | 7573e81069e4c8b1eef481a74f07340ae32de5ae /src/vpp-api/java/jvpp/gen/jvppgen/jvpp_c_gen.py | |
parent | 59b2565cd91a67ced650739f36129650830211ac (diff) |
jvpp: added logs for sending and receiving event messages (VPP-982)
Change-Id: I47f9d12d934378f18c6f841b902af2a64ee7b187
Signed-off-by: Matej Perina <mperina@cisco.com>
Diffstat (limited to 'src/vpp-api/java/jvpp/gen/jvppgen/jvpp_c_gen.py')
-rw-r--r-- | src/vpp-api/java/jvpp/gen/jvppgen/jvpp_c_gen.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vpp-api/java/jvpp/gen/jvppgen/jvpp_c_gen.py b/src/vpp-api/java/jvpp/gen/jvppgen/jvpp_c_gen.py index 8761eb136c2..4fe7ab53fb9 100644 --- a/src/vpp-api/java/jvpp/gen/jvppgen/jvpp_c_gen.py +++ b/src/vpp-api/java/jvpp/gen/jvppgen/jvpp_c_gen.py @@ -140,6 +140,8 @@ JNIEXPORT jint JNICALL Java_io_fd_vpp_jvpp_${plugin_name}_JVpp${java_plugin_name $msg_initialization // send message: + if (CLIB_DEBUG > 1) + clib_warning ("Sending ${field_name} event message"); vl_msg_api_send_shmem (plugin_main->vl_input_queue, (u8 *)&mp); if ((*env)->ExceptionCheck(env)) { return JNI_ERR; @@ -229,6 +231,9 @@ static void vl_api_${handler_name}_t_handler (vl_api_${handler_name}_t * mp) jthrowable exc; $err_handler + if (CLIB_DEBUG > 1) + clib_warning ("Received ${handler_name} event message"); + jmethodID constructor = (*env)->GetMethodID(env, ${class_ref_name}Class, "<init>", "()V"); // User does not have to provide callbacks for all VPP messages. |