From 8472b6be89f579eb5f9d52a90250df0e8ac4acde Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 29 Mar 2017 14:35:29 +0200 Subject: Improve detail in DEBUG message at recurring request submission Change-Id: I93d0cbcae8e2cdf1144ffd981c93a109682c1685 Signed-off-by: Romain Forlot --- src/diagnostic/diagnostic-manager.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/diagnostic') 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) { -- cgit 1.2.3-korg