Skip to content

Commit da982e1

Browse files
linguini1Alan C. Assis
authored andcommitted
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>
1 parent 3fd22d4 commit da982e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensors/lis2mdl_uorb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ static int lis2mdl_control(FAR struct sensor_lowerhalf_s *lower,
11401140

11411141
default:
11421142
err = -EINVAL;
1143-
snerr("Unknown command for LIS2MDL: lu\n", cmd);
1143+
snerr("Unknown command for LIS2MDL: %d\n", cmd);
11441144
break;
11451145
}
11461146

0 commit comments

Comments
 (0)