From 60080dd9e78da5c109a65170bab06124d0c0f045 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Tue, 19 May 2015 11:10:06 -0700 Subject: [PATCH] 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 --- src/systemcmds/param/param.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemcmds/param/param.c b/src/systemcmds/param/param.c index b1044d71eaf..2e0f1c10478 100644 --- a/src/systemcmds/param/param.c +++ b/src/systemcmds/param/param.c @@ -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;