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:
Matteo Golin
2025-04-20 12:02:15 -04:00
committed by Alan C. Assis
parent 3fd22d40d8
commit da982e113e
+1 -1
View File
@@ -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;
}