Revision 6982d664 hw/hpet.c

b/hw/hpet.c
294 294
    if (index >= 0x100 && index <= 0x3ff) {
295 295
        uint8_t timer_id = (addr - 0x100) / 0x20;
296 296
        if (timer_id > HPET_NUM_TIMERS - 1) {
297
            printf("qemu: timer id out of range\n");
297
            DPRINTF("qemu: timer id out of range\n");
298 298
            return 0;
299 299
        }
300 300
        HPETTimer *timer = &s->timer[timer_id];
......
383 383
        DPRINTF("qemu: hpet_ram_writel timer_id = %#x \n", timer_id);
384 384
        HPETTimer *timer = &s->timer[timer_id];
385 385

  
386
        if (timer_id > HPET_NUM_TIMERS - 1) {
387
            DPRINTF("qemu: timer id out of range\n");
388
            return;
389
        }
386 390
        switch ((addr - 0x100) % 0x20) {
387 391
            case HPET_TN_CFG:
388 392
                DPRINTF("qemu: hpet_ram_writel HPET_TN_CFG\n");

Also available in: Unified diff