Revision 8c0d577e target-i386/kvm.c

b/target-i386/kvm.c
34 34
//#define DEBUG_KVM
35 35

  
36 36
#ifdef DEBUG_KVM
37
#define dprintf(fmt, ...) \
37
#define DPRINTF(fmt, ...) \
38 38
    do { fprintf(stderr, fmt, ## __VA_ARGS__); } while (0)
39 39
#else
40
#define dprintf(fmt, ...) \
40
#define DPRINTF(fmt, ...) \
41 41
    do { } while (0)
42 42
#endif
43 43

  
......
957 957
            struct kvm_interrupt intr;
958 958
            intr.irq = irq;
959 959
            /* FIXME: errors */
960
            dprintf("injected interrupt %d\n", irq);
960
            DPRINTF("injected interrupt %d\n", irq);
961 961
            kvm_vcpu_ioctl(env, KVM_INTERRUPT, &intr);
962 962
        }
963 963
    }
......
971 971
    else
972 972
        run->request_interrupt_window = 0;
973 973

  
974
    dprintf("setting tpr\n");
974
    DPRINTF("setting tpr\n");
975 975
    run->cr8 = cpu_get_apic_tpr(env);
976 976

  
977 977
    return 0;
......
1009 1009

  
1010 1010
    switch (run->exit_reason) {
1011 1011
    case KVM_EXIT_HLT:
1012
        dprintf("handle_hlt\n");
1012
        DPRINTF("handle_hlt\n");
1013 1013
        ret = kvm_handle_halt(env);
1014 1014
        break;
1015 1015
    }

Also available in: Unified diff