drivers/motor: fix printf warnings

This commit is contained in:
raiden00pl 2024-06-12 11:08:49 +02:00 committed by Xiang Xiao
parent 6c5f8bd61f
commit b076b5dfb6
3 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ static int a4988_work(FAR struct stepper_lowerhalf_s *dev,
stpwarn("Delay is clamped to 1 us\n");
}
stpinfo("Delay is %ld us\n", delay);
stpinfo("Delay is %d us\n", delay);
/* Set direction */

View File

@ -127,7 +127,7 @@ static int drv8825_work(FAR struct stepper_lowerhalf_s *dev,
stpwarn("Delay is clamped to 2 us\n");
}
stpinfo("Delay is %ld us\n", delay);
stpinfo("Delay is %d us\n", delay);
/* Set direction */

View File

@ -266,7 +266,7 @@ static int stepper_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
lower->status.position = (int32_t)arg;
ret = 0;
stpinfo("STEPIOC_SET_CURRENT_POS: new position is %ld\n",
stpinfo("STEPIOC_SET_CURRENT_POS: new position is %" PRId32 "\n",
lower->status.position);
}
break;