mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
drivers/sensors/lis2mdl: Fix SYSLOG call.
This call to syslog was missing the '%' in its format string, and also was using the wrong format string (lu instead of d) to print the `cmd` argument. It is corrected and the compiler warning resolved. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
committed by
Alan C. Assis
parent
3fd22d40d8
commit
da982e113e
@@ -1140,7 +1140,7 @@ static int lis2mdl_control(FAR struct sensor_lowerhalf_s *lower,
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
snerr("Unknown command for LIS2MDL: lu\n", cmd);
|
snerr("Unknown command for LIS2MDL: %d\n", cmd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user