From 1a033f3b731a0c9b776b324dc2a09944cd37f5c4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 14 Nov 2015 14:43:54 +1100 Subject: [PATCH] HAL_Linux: don't flood the link with errors on uninitialised perf counter that could bring down the vehicle --- libraries/AP_HAL_Linux/Perf.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/libraries/AP_HAL_Linux/Perf.cpp b/libraries/AP_HAL_Linux/Perf.cpp index 3410494ecf..0239655a88 100644 --- a/libraries/AP_HAL_Linux/Perf.cpp +++ b/libraries/AP_HAL_Linux/Perf.cpp @@ -107,7 +107,6 @@ void Util::perf_begin(perf_counter_t perf) struct perf_counter_elapsed_t *perf_elapsed = (struct perf_counter_elapsed_t *)perf; if (perf_elapsed == NULL) { - hal.console->printf("Trying to begin uninitialized perf counter\n"); return; } if (perf_elapsed->base.type != PC_ELAPSED) { @@ -127,7 +126,6 @@ void Util::perf_end(perf_counter_t perf) struct perf_counter_elapsed_t *perf_elapsed = (struct perf_counter_elapsed_t *)perf; if (perf_elapsed == NULL) { - hal.console->printf("Trying to end uninitialized perf counter\n"); return; } @@ -175,7 +173,6 @@ void Util::perf_count(perf_counter_t perf) struct perf_counter_count_t *perf_counter = (struct perf_counter_count_t *)perf; if (perf_counter == NULL) { - hal.console->printf("Trying to count uninitialized perf counter\n"); return; }