aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-12-12 16:12:02 -0500
committerRob Austein <sra@hactrn.net>2015-12-12 16:12:02 -0500
commit6f479d8615a60e94b3c19e090a4eba8a0256ec32 (patch)
tree7f52d4f15b4975e9fd2f8ba8b7cd4fcb89e17145 /utils
parentabd5caf5ea6e3563d623d3e952c0b9328f52639f (diff)
Silence platform-dependent compiler whining: in general, when printf()
whines about some platform-dependent integer size issue, it's best to use both an explicitly sized format (eg, "%lu") and an explicit cast (eg, "(unsigned long)") when silencing the warning, otherwise it'll just pop up again in different form on the next platform tested.
Diffstat (limited to 'utils')
-rw-r--r--utils/cores.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cores.c b/utils/cores.c
index d59f834..18e994d 100644
--- a/utils/cores.c
+++ b/utils/cores.c
@@ -49,7 +49,7 @@ int main(int argc, char *argv[])
for (core = hal_core_iterate(NULL); core != NULL; core = hal_core_iterate(core)) {
info = hal_core_info(core);
- printf("%08lx: %8.8s %4.4s\n", info->base, info->name, info->version);
+ printf("%08lx: %8.8s %4.4s\n", (unsigned long)info->base, info->name, info->version);
}
return 0;