summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2014-05-10 12:15:20 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2014-05-10 12:15:20 +0000
commit5adfbe0760ba3d969decdafeb118b5cac8ab4a01 (patch)
tree315438f2c094ee44c9d9ad0c3a414c7a07d5788a /sys/arch
parent16bdc6f812e01c8857bf1657c1703e679dd8364f (diff)
Format string fixes for printing interrupt vectors.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/pci_machdep.c4
-rw-r--r--sys/arch/sparc64/sparc64/clock.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/pci_machdep.c b/sys/arch/sparc64/dev/pci_machdep.c
index adc0e447a63..967db32027d 100644
--- a/sys/arch/sparc64/dev/pci_machdep.c
+++ b/sys/arch/sparc64/dev/pci_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.c,v 1.43 2013/05/17 18:26:37 kettenis Exp $ */
+/* $OpenBSD: pci_machdep.c,v 1.44 2014/05/10 12:15:19 kettenis Exp $ */
/* $NetBSD: pci_machdep.c,v 1.22 2001/07/20 00:07:13 eeh Exp $ */
/*
@@ -434,7 +434,7 @@ pci_intr_string(pc, ih)
if (ih & PCI_INTR_MSI)
snprintf(str, sizeof str, "msi");
else
- snprintf(str, sizeof str, "ivec 0x%x", INTVEC(ih));
+ snprintf(str, sizeof str, "ivec 0x%llx", INTVEC(ih));
DPRINTF(SPDB_INTR, ("; returning %s\n", str));
return (str);
diff --git a/sys/arch/sparc64/sparc64/clock.c b/sys/arch/sparc64/sparc64/clock.c
index 15c58e90c52..8ab51015522 100644
--- a/sys/arch/sparc64/sparc64/clock.c
+++ b/sys/arch/sparc64/sparc64/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.52 2014/03/29 18:09:30 guenther Exp $ */
+/* $OpenBSD: clock.c,v 1.53 2014/05/10 12:15:19 kettenis Exp $ */
/* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */
/*
@@ -502,7 +502,7 @@ timerattach(parent, self, aux)
strlcpy(level14.ih_name, "prof", sizeof(level14.ih_name));
intr_establish(14, &level14);
- printf(" ivec 0x%x, 0x%x\n", INTVEC(level10.ih_number),
+ printf(" ivec 0x%llx, 0x%llx\n", INTVEC(level10.ih_number),
INTVEC(level14.ih_number));
}