Changeset f4c2b6a in mainline for kernel/genarch/src/acpi/madt.c


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.