diff --git a/src/emc/tp/tp.c b/src/emc/tp/tp.c index c286207f51c..cd458abc9e3 100644 --- a/src/emc/tp/tp.c +++ b/src/emc/tp/tp.c @@ -1706,7 +1706,8 @@ STATIC blend_type_t tpCheckBlendArcType( //If exact stop, we don't compute the arc if (prev_tc->term_cond != TC_TERM_COND_PARABOLIC) { - tp_debug_print("Wrong term cond = %u\n", prev_tc->term_cond); + // term_cond is signed int; use %d (cppcheck invalidPrintfArgType_uint) + tp_debug_print("Wrong term cond = %d\n", prev_tc->term_cond); return BLEND_NONE; } @@ -1721,7 +1722,8 @@ STATIC blend_type_t tpCheckBlendArcType( return BLEND_NONE; } - tp_debug_print("Motion types: prev_tc = %u, tc = %u\n", + // motion_type is signed int; use %d (cppcheck invalidPrintfArgType_uint) + tp_debug_print("Motion types: prev_tc = %d, tc = %d\n", prev_tc->motion_type,tc->motion_type); //If not linear blends, we can't easily compute an arc if ((prev_tc->motion_type == TC_LINEAR) && (tc->motion_type == TC_LINEAR)) {