diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-15 00:48:49 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:21:57 +0100 |
commit | ecedda09c61309a3960cb2f779e8cbcc184dc0da (patch) | |
tree | fac18858d63ba4724c1b0e4b6ce53025c2ecb404 | |
parent | ca722832efce48e92842b246eb5831c58e7a8d8e (diff) |
Improve shims_logger function to get full details.
Change-Id: I752db65cb3fbca4d33b932f3a0c597adfaf79903
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r-- | src/diagnostic/diagnostic-manager.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/diagnostic/diagnostic-manager.cpp b/src/diagnostic/diagnostic-manager.cpp index 6cf220c1..21a599d2 100644 --- a/src/diagnostic/diagnostic-manager.cpp +++ b/src/diagnostic/diagnostic-manager.cpp @@ -380,11 +380,16 @@ bool diagnostic_manager_t::shims_send(const uint32_t arbitration_id, const uint8 return can_bus_dev->shims_send(arbitration_id, data, size); } -void diagnostic_manager_t::shims_logger(const char* m, ...) +void diagnostic_manager_t::shims_logger(const char* format, ...) { - DEBUG(binder_interface, "%s", m); + va_list args; + va_start(args, format); + + char buffer[256]; + vsnprintf(buffer, 256, format, args); + + DEBUG(binder_interface, "shims_logger: %s", buffer); } void diagnostic_manager_t::shims_timer() {} - |