forked from Archive/PX4-Autopilot
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:
parent
ce96329f95
commit
60080dd9e7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue