mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +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:
|
||||
err = -EINVAL;
|
||||
snerr("Unknown command for LIS2MDL: lu\n", cmd);
|
||||
snerr("Unknown command for LIS2MDL: %d\n", cmd);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user