mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-09-24 06:25:01 +08:00
QuRT: fixed print of INT32_t type
In QuRT, this is a long but the variable was being printed with "%d" Need to cast variable as long and use "%ld" Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -297,7 +297,7 @@ do_show_index(const char *index, bool used_index)
|
||||
switch (param_type(param)) {
|
||||
case PARAM_TYPE_INT32:
|
||||
if (!param_get(param, &ii)) {
|
||||
printf("%d\n", ii);
|
||||
printf("%ld\n", (long)ii);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user