diff options
author | Anirudh Gargi <anirudh.gargi@intel.com> | 2016-05-25 13:45:13 +0530 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2016-05-24 11:05:42 -0500 |
commit | 1cab1d554d683b119247fede19fb1c4284a3b3c8 (patch) | |
tree | e9626052514f78a49847f9a65611a186db5d6767 | |
parent | e62708b0a2566d5a121a51c8e5252e298954e6ee (diff) | |
download | ofono-1cab1d554d683b119247fede19fb1c4284a3b3c8.tar.gz |
gril: Fix print macros to use latest print_buf
-rw-r--r-- | gril/gril.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gril/gril.h b/gril/gril.h index e8d37307..283770db 100644 --- a/gril/gril.h +++ b/gril/gril.h @@ -75,7 +75,8 @@ extern char print_buf[]; #define g_ril_print_request(gril, token, req) \ G_RIL_TRACE(gril, "[%d,%04d]> %s %s", \ g_ril_get_slot(gril), token, \ - g_ril_request_id_to_string(gril, req), print_buf) + g_ril_request_id_to_string(gril, req), print_buf); \ + print_buf[0] = '\0'; #define g_ril_print_request_no_args(gril, token, req) \ G_RIL_TRACE(gril, "[%d,%04d]> %s", \ g_ril_get_slot(gril), token, \ @@ -85,7 +86,8 @@ extern char print_buf[]; g_ril_get_slot(gril), \ message->serial_no, \ g_ril_request_id_to_string(gril, message->req), \ - print_buf) + print_buf); \ + print_buf[0] = '\0'; #define g_ril_print_response_no_args(gril, message) \ G_RIL_TRACE(gril, "[%d,%04d]< %s", \ g_ril_get_slot(gril), message->serial_no, \ |