Format string fixes for printing interrupt vectors.
authorkettenis <kettenis@openbsd.org>
Sat, 10 May 2014 12:15:19 +0000 (12:15 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 10 May 2014 12:15:19 +0000 (12:15 +0000)
sys/arch/sparc64/dev/pci_machdep.c
sys/arch/sparc64/sparc64/clock.c

index adc0e44..967db32 100644 (file)
@@ -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);
index 15c58e9..8ab5101 100644 (file)
@@ -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));
 }