summaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli.c')
-rw-r--r--cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.c b/cli.c
index 0bf6193..6301a01 100644
--- a/cli.c
+++ b/cli.c
@@ -452,7 +452,7 @@ int ReadRegisterRange(pcilib_t *handle, pcilib_model_t model, const char *bank,
}
if (i%numbers_per_line == 0) printf("%4lx: ", addr + i);
- printf("%0*lx", access * 2, buf[i]);
+ printf("%0*lx", access * 2, (unsigned long)buf[i]);
}
printf("\n\n");
}