drivers/motor: fix printf warnings
This commit is contained in:
parent
6c5f8bd61f
commit
b076b5dfb6
@ -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 */
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user