Commit 9f728334 authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Fix printf format strings.

parent 72a2a5bb
......@@ -158,8 +158,8 @@ static void setpoint_generator_1d_calculate(struct controller_block *spg)
if (t < 0) {
/* Command is to old, pretend it
is a setpoint without time */
log_send(LOG_T_WARNING, "%s: setpoint's time is in the past, clock skew? (%lld < %d)",
spg->name, (long long)priv->cur_command.t.tv_sec, controller_time_seconds);
log_send(LOG_T_WARNING, "%s: setpoint's time is in the past, clock skew? (%lld < %lld)",
spg->name, (long long)priv->cur_command.t.tv_sec, (long long)controller_time_seconds);
priv->cmd_x = priv->cur_command.value.f;
priv->cmd_v = 0.0;
priv->cur_done = true;
......
......@@ -297,8 +297,8 @@ static void setpoint_generator_3d_calculate(struct controller_block *spg)
if (t < 0) {
/* Command is to old, pretend it
is a setpoint without time */
log_send(LOG_T_WARNING, "%s: setpoint's time is in the past, clock skew? (%lld < %d)",
spg->name, (long long)priv->cur_command.t.tv_sec, controller_time_seconds);
log_send(LOG_T_WARNING, "%s: setpoint's time is in the past, clock skew? (%lld < %lld)",
spg->name, (long long)priv->cur_command.t.tv_sec, (long long)controller_time_seconds);
priv->cmd_x = priv->cur_command.value.f;
priv->cmd_v = 0.0;
priv->cur_done = true;
......
Supports Markdown
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