Changeset f4c2b6a in mainline for kernel/genarch/src


Ignore:
Timestamp:
2008-06-03T14:59:48Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4fb51
Parents:
b63f8569
Message:

reflect changes in generic code
proper formatting directives
coding style

Location:
kernel/genarch/src/acpi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/acpi/acpi.c

    rb63f8569 rf4c2b6a  
    106106                                        goto next;
    107107                                *signature_map[j].sdt_ptr = h;
    108                                 printf("%#zp: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description);
     108                                printf("%p: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description);
    109109                        }
    110110                }
     
    127127                                        goto next;
    128128                                *signature_map[j].sdt_ptr = h;
    129                                 printf("%#zp: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description);
     129                                printf("%p: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description);
    130130                        }
    131131                }
     
    161161
    162162rsdp_found:
    163         printf("%#zp: ACPI Root System Description Pointer\n", acpi_rsdp);
     163        printf("%p: ACPI Root System Description Pointer\n", acpi_rsdp);
    164164
    165165        acpi_rsdt = (struct acpi_rsdt *) (unative_t) acpi_rsdp->rsdt_address;
     
    170170
    171171        if (acpi_rsdt && !acpi_sdt_check((uint8_t *) acpi_rsdt)) {
    172                 printf("RSDT: %s\n", "bad checksum");
     172                printf("RSDT: bad checksum\n");
    173173                return;
    174174        }
    175175        if (acpi_xsdt && !acpi_sdt_check((uint8_t *) acpi_xsdt)) {
    176                 printf("XSDT: %s\n", "bad checksum");
     176                printf("XSDT: bad checksum\n");
    177177                return;
    178178        }
  • kernel/genarch/src/acpi/madt.c

    rb63f8569 rf4c2b6a  
    127127int madt_irq_to_pin(unsigned int irq)
    128128{
    129         ASSERT(irq < sizeof(isa_irq_map)/sizeof(int));
     129        ASSERT(irq < sizeof(isa_irq_map) / sizeof(int));
    130130        return isa_irq_map[irq];
    131131}
     
    185185                                case MADT_L_SAPIC:
    186186                                case MADT_PLATFORM_INTR_SRC:
    187                                         printf("MADT: skipping %s entry (type=%zd)\n", entry[h->type], h->type);
     187                                        printf("MADT: skipping %s entry (type=%" PRIu8 ")\n", entry[h->type], h->type);
    188188                                        break;
    189189       
    190190                                default:
    191191                                        if (h->type >= MADT_RESERVED_SKIP_BEGIN && h->type <= MADT_RESERVED_SKIP_END) {
    192                                                 printf("MADT: skipping reserved entry (type=%zd)\n", h->type);
     192                                                printf("MADT: skipping reserved entry (type=%" PRIu8 ")\n", h->type);
    193193                                        }
    194194                                        if (h->type >= MADT_RESERVED_OEM_BEGIN) {
    195                                                 printf("MADT: skipping OEM entry (type=%zd)\n", h->type);
     195                                                printf("MADT: skipping OEM entry (type=%" PRIu8 ")\n", h->type);
    196196                                        }
    197197                                        break;
     
    234234void madt_intr_src_ovrd_entry(struct madt_intr_src_ovrd *override, uint32_t index)
    235235{
    236         ASSERT(override->source < sizeof(isa_irq_map)/sizeof(int));
    237         printf("MADT: ignoring %s entry: bus=%zd, source=%zd, global_int=%zd, flags=%#hx\n",
     236        ASSERT(override->source < sizeof(isa_irq_map) / sizeof(int));
     237        printf("MADT: ignoring %s entry: bus=%" PRIu8 ", source=%" PRIu8 ", global_int=%" PRIu32 ", flags=%#" PRIx16 "\n",
    238238                entry[override->header.type], override->bus, override->source,
    239239                override->global_int, override->flags);
Note: See TracChangeset for help on using the changeset viewer.