diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-19 21:18:43 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-19 21:18:43 +0000 |
commit | bbaefdff9614314119e0a867fad03d222b6f3346 (patch) | |
tree | 0e1190b47ff333ad9e83959d16be1c1b97ff7c3d /sys/arch/sgi/localbus/macebus.c | |
parent | 262a96382cd005e3987535973d968e7f0dc31ef4 (diff) |
Format string fixes and removal of -Wno-format for sgi. Based upon an
initial diff from jasper@
Diffstat (limited to 'sys/arch/sgi/localbus/macebus.c')
-rw-r--r-- | sys/arch/sgi/localbus/macebus.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/sgi/localbus/macebus.c b/sys/arch/sgi/localbus/macebus.c index 1ef13d58237..2bef5f29a4b 100644 --- a/sys/arch/sgi/localbus/macebus.c +++ b/sys/arch/sgi/localbus/macebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macebus.c,v 1.61 2012/10/03 11:18:23 miod Exp $ */ +/* $OpenBSD: macebus.c,v 1.62 2014/05/19 21:18:42 miod Exp $ */ /* * Copyright (c) 2000-2004 Opsycon AB (www.opsycon.se) @@ -223,7 +223,7 @@ macebusprint(void *aux, const char *macebus) printf("%s at %s", maa->maa_name, macebus); if (maa->maa_baseaddr != 0) - printf(" base 0x%08x", maa->maa_baseaddr); + printf(" base 0x%08lx", maa->maa_baseaddr); if (maa->maa_intr >= 0) printf(" irq %d", maa->maa_intr); @@ -594,7 +594,8 @@ do { \ (1 << (bit))) != 0) { \ if ((mace_isr & mace_imr) != 0) \ printf("spurious crime interrupt %d" \ - " mace isr %p imr %p\n", bit, mace_isr, mace_imr); \ + " mace isr %p imr %p\n", \ + bit, (void *)mace_isr, (void *)mace_imr); \ } else \ printf("spurious crime interrupt %d\n", bit); \ } while (0) |