From: kettenis Date: Sat, 10 May 2014 12:15:19 +0000 (+0000) Subject: Format string fixes for printing interrupt vectors. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=57bd113e90386c1df92981d14c7ae12582c39937;p=openbsd Format string fixes for printing interrupt vectors. --- 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)); }