diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-29 14:35:29 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-11 12:41:42 +0200 |
commit | 8472b6be89f579eb5f9d52a90250df0e8ac4acde (patch) | |
tree | f1a900c7f5674589ddc5fa9665ccef7b91260378 | |
parent | 8f996bf611ed029bd99ae404fbef97e54eb16764 (diff) |
Improve detail in DEBUG message at recurring request submission
Change-Id: I93d0cbcae8e2cdf1144ffd981c93a109682c1685
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r-- | src/diagnostic/diagnostic-manager.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/diagnostic/diagnostic-manager.cpp b/src/diagnostic/diagnostic-manager.cpp index ffce4d07..1012920f 100644 --- a/src/diagnostic/diagnostic-manager.cpp +++ b/src/diagnostic/diagnostic-manager.cpp @@ -373,11 +373,15 @@ bool diagnostic_manager_t::add_recurring_request(DiagnosticRequest* request, con diagnostic_request_to_string(&entry->get_handle()->request, request_string, sizeof(request_string)); - DEBUG(binder_interface, "add_recurring_request: Added recurring diagnostic request (freq: %f) on bus %s: %s", - frequencyHz, bus_.c_str(), request_string); - uint64_t usec; sd_event_now(afb_daemon_get_event_loop(binder_interface->daemon), CLOCK_MONOTONIC, &usec); + + DEBUG(binder_interface, "add_recurring_request: Added recurring diagnostic request (freq: %f) on bus %s: (%s) at %ld", + frequencyHz, + bus_.c_str(), + request_string, + usec); + if(sd_event_add_time(afb_daemon_get_event_loop(binder_interface->daemon), &source, CLOCK_MONOTONIC, usec, TIMERFD_ACCURACY, send_request, request) < 0) { |