From da982e113e40e913b89672accf748b4c354cae4c Mon Sep 17 00:00:00 2001 From: Matteo Golin Date: Sun, 20 Apr 2025 12:02:15 -0400 Subject: [PATCH] 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 --- drivers/sensors/lis2mdl_uorb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sensors/lis2mdl_uorb.c b/drivers/sensors/lis2mdl_uorb.c index eb705e2fd18..4c8cbbe5b99 100644 --- a/drivers/sensors/lis2mdl_uorb.c +++ b/drivers/sensors/lis2mdl_uorb.c @@ -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; }