Commit 4a437948 authored by Daan Vreeken's avatar Daan Vreeken
Browse files

Committer: Daan Vreeken <pa4dan@RacebeestV3.VEHosting.LAN>

	modified:   controller/controller/controller_sample.c

Use send_log(.., "%s", linebuf) instead of send_log(.., linebuf) to prevent
argument parsing since there is no way to pass arguments to the function
calls.
parent 442c458c
......@@ -428,13 +428,13 @@ static void *sample_monitor(void *arg)
log_send(LOG_T_DEBUG, "Samplenr: %d\tOverruns: %d",
controller_samplenr, controller_sampleoverruns);
sample_timing_snprintf(&st_start, linebuf, 200);
log_send(LOG_T_DEBUG, linebuf);
log_send(LOG_T_DEBUG, "%s", linebuf);
sample_timing_snprintf(&st_end, linebuf, 200);
log_send(LOG_T_DEBUG, linebuf);
log_send(LOG_T_DEBUG, "%s", linebuf);
sample_timing_snprintf(&st_io, linebuf, 200);
log_send(LOG_T_DEBUG, linebuf);
log_send(LOG_T_DEBUG, "%s", linebuf);
sample_timing_snprintf(&st_sample, linebuf, 200);
log_send(LOG_T_DEBUG, linebuf);
log_send(LOG_T_DEBUG, "%s", linebuf);
sleep(1);
}
return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment