diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2015-12-03 15:38:07 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2015-12-03 15:38:07 +0000 |
commit | 8d5e53f21bd57382f1b93abab2ed17e36f8cd52a (patch) | |
tree | 3379982dc307f6008244d54aa9faefad1230de6e /sys/arch/sgi | |
parent | b2bd71b81a2ed54b713d9a3c593ca8a7c50c084a (diff) |
Let the IP27 kernel build with DEBUG.
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/sgi/sginode.c | 22 | ||||
-rw-r--r-- | sys/arch/sgi/xbow/xbridge.c | 18 |
2 files changed, 20 insertions, 20 deletions
diff --git a/sys/arch/sgi/sgi/sginode.c b/sys/arch/sgi/sgi/sginode.c index d144f251f52..dfdffeb46c5 100644 --- a/sys/arch/sgi/sgi/sginode.c +++ b/sys/arch/sgi/sgi/sginode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sginode.c,v 1.31 2015/02/06 22:12:19 miod Exp $ */ +/* $OpenBSD: sginode.c,v 1.32 2015/12/03 15:38:06 visa Exp $ */ /* * Copyright (c) 2008, 2009, 2011 Miodrag Vallat. * @@ -93,8 +93,8 @@ kl_init(int ip35) cfghdr = IP27_KLCONFIG_HDR(0); DB_PRF(("config @%p\n", cfghdr)); - DB_PRF(("magic %p version %x\n", cfghdr->magic, cfghdr->version)); - DB_PRF(("console %p baud %d\n", cfghdr->cons_info.uart_base, + DB_PRF(("magic %#llx version %x\n", cfghdr->magic, cfghdr->version)); + DB_PRF(("console %#lx baud %d\n", cfghdr->cons_info.uart_base, cfghdr->cons_info.baud)); val = IP27_LHUB_L(nibase | HUBNI_STATUS); @@ -103,9 +103,9 @@ kl_init(int ip35) bios_printf("Machine is in %c mode.\n", kl_n_mode + 'M'); val = IP27_LHUB_L(HUBPI_REGION_PRESENT); - DB_PRF(("Region present %p.\n", val)); + DB_PRF(("Region present %#llx.\n", val)); val = IP27_LHUB_L(HUBPI_CALIAS_SIZE); - DB_PRF(("Calias size %p.\n", val)); + DB_PRF(("Calias size %#llx.\n", val)); /* * Get a grip on the global data area, and figure out how many @@ -141,7 +141,7 @@ kl_init(int ip35) int kl_first_pass_board(lboard_t *boardinfo, void *arg) { - DB_PRF(("%cboard type %x slot %x nasid %x nic %p ncomp %d\n", + DB_PRF(("%cboard type %x slot %x nasid %x nic %#llx ncomp %d\n", boardinfo->struct_type & LBOARD ? 'l' : 'r', boardinfo->brd_type, boardinfo->brd_slot, boardinfo->brd_nasid, boardinfo->brd_nic, @@ -351,7 +351,7 @@ kl_first_pass_comp(klinfo_t *comp, void *arg) #ifdef DEBUG case KLSTRUCT_HUB: hubcomp = (klhub_t *)comp; - DB_PRF(("\t port %d flag %d speed %dMHz\n", + DB_PRF(("\t port %d flag %d speed %lldMHz\n", hubcomp->hub_port.port_nasid, hubcomp->hub_port.port_flag, hubcomp->hub_speed / 1000000)); break; @@ -363,7 +363,7 @@ kl_first_pass_comp(klinfo_t *comp, void *arg) if (scsicomp == NULL) continue; DB_PRF(("\t\tbus %d, physid 0x%02x virtid %d," - " specific %ld, numdevs %d\n", + " specific %lld, numdevs %d\n", i, scsicomp->scsi_info.physid, scsicomp->scsi_info.virtid, scsicomp->scsi_specific, @@ -376,7 +376,7 @@ kl_first_pass_comp(klinfo_t *comp, void *arg) #ifdef DEBUG if (arc != NULL) { DB_PRF(("\t[ARCBios component:" - " class %d type %d flags %02x key 0x%lx", + " class %d type %d flags %02x key 0x%llx", arc->class, arc->type, arc->flags, arc->key)); if (arc->id_len != 0) DB_PRF((" %.*s]\n", @@ -508,7 +508,7 @@ kl_add_memory_ip27(int16_t nasid, int16_t *sizes, unsigned int cnt) if (np == 0) continue; - DB_PRF(("IP27 memory from %p to %p (%u MB)\n", + DB_PRF(("IP27 memory from %#lx to %#llx (%llu MB)\n", basepa, basepa + (np << 20), np)); np = atop(np << 20); /* MB to pages */ @@ -555,7 +555,7 @@ kl_add_memory_ip35(int16_t nasid, int16_t *sizes, unsigned int cnt) while (cnt-- != 0) { np = *sizes++; if (np != 0) { - DB_PRF(("IP35 memory from %p to %p (%u MB)\n", + DB_PRF(("IP35 memory from %#lx to %#llx (%llu MB)\n", basepa, basepa + (np << 20), np)); fp = atop(basepa); diff --git a/sys/arch/sgi/xbow/xbridge.c b/sys/arch/sgi/xbow/xbridge.c index 7e92d9354b9..38059d197b3 100644 --- a/sys/arch/sgi/xbow/xbridge.c +++ b/sys/arch/sgi/xbow/xbridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xbridge.c,v 1.99 2015/09/27 10:12:09 semarie Exp $ */ +/* $OpenBSD: xbridge.c,v 1.100 2015/12/03 15:38:06 visa Exp $ */ /* * Copyright (c) 2008, 2009, 2011 Miodrag Vallat. @@ -1500,7 +1500,7 @@ xbridge_pci_intr_handler(void *v) */ rc = -1; #ifdef DEBUG - printf("%s: irq %d but not pending in ISR %08x\n", + printf("%s: irq %d but not pending in ISR %08llx\n", DEVNAME(xb), xi->xi_intrbit, isr); #endif } else { @@ -2389,7 +2389,7 @@ xbridge_resource_setup(struct xbpci_softc *xb) #ifdef DEBUG for (dev = 0; dev < xb->xb_nslots; dev++) - printf("device %d: devio %08x\n", + printf("device %d: devio %08llx\n", dev, xbridge_read_reg(xb, BRIDGE_DEVICE(dev))); #endif nppb = npccbb = 0; @@ -2734,7 +2734,7 @@ xbridge_mapping_setup(struct xbpci_softc *xb, int io) BRIDGE_PCI_IO_SPACE_LENGTH - offs; #ifdef DEBUG - printf("direct io %p-%p base %p\n", + printf("direct io %#lx-%#lx base %#lx\n", offs, offs + len - 1, base); #endif offs -= BRIDGE_PCI_IO_SPACE_BASE; @@ -2790,7 +2790,7 @@ xbridge_mapping_setup(struct xbpci_softc *xb, int io) offs; #ifdef DEBUG - printf("direct mem %p-%p base %p\n", + printf("direct mem %#lx-%#lx base %#lx\n", offs, offs + len - 1, base); #endif offs -= membase; @@ -3007,7 +3007,7 @@ xbridge_resource_manage(struct xbpci_softc *xb, pcitag_t tag, * ARCS but can be reinitialized as we see fit). */ #ifdef DEBUG - printf("tag %04x bar %02x type %d base %p size %p", + printf("tag %04lx bar %02x type %d base %#lx size %#lx", tag, reg, type, base, size); #endif switch (type) { @@ -3038,7 +3038,7 @@ xbridge_resource_manage(struct xbpci_softc *xb, pcitag_t tag, } #ifdef DEBUG - printf(" setup at %p\n", base); + printf(" setup at %#lx\n", base); #endif pci_conf_write(pc, tag, reg, base); @@ -3054,7 +3054,7 @@ xbridge_resource_manage(struct xbpci_softc *xb, pcitag_t tag, if (size != 0) { #ifdef DEBUG - printf("bar %02x type rom base %p size %p", + printf("bar %02x type rom base %#lx size %#lx", reg_rom, base, size); #endif if (memex != NULL) { @@ -3064,7 +3064,7 @@ xbridge_resource_manage(struct xbpci_softc *xb, pcitag_t tag, } else base = 0; #ifdef DEBUG - printf(" setup at %p\n", base); + printf(" setup at %#lx\n", base); #endif } else base = 0; |