X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2F8254.c;h=c2057524065f8b90beffaea7d17b8e3ff232d714;hp=7d1acfe1dcb5d49b76afffc15244001f3f548e2a;hb=82b8b87c344fcd1eab22e3f3be5ad54cbb3f8f68;hpb=d34450b1e6fe3c2e1295c268c1722c669ba8d545 diff --git a/palacios/src/devices/8254.c b/palacios/src/devices/8254.c index 7d1acfe..c205752 100644 --- a/palacios/src/devices/8254.c +++ b/palacios/src/devices/8254.c @@ -26,7 +26,7 @@ -#ifndef DEBUG_PIT +#ifndef CONFIG_DEBUG_PIT #undef PrintDebug #define PrintDebug(fmt, args...) #endif @@ -653,7 +653,7 @@ static int pit_init(struct guest_info * info, void * cfg_data) { v3_dev_hook_io(dev, CHANNEL2_PORT, &pit_read_channel, &pit_write_channel); v3_dev_hook_io(dev, COMMAND_PORT, NULL, &pit_write_command); -#ifdef DEBUG_PIT +#ifdef CONFIG_DEBUG_PIT PrintDebug("8254 PIT: OSC_HZ=%d, reload_val=", OSC_HZ); PrintTraceLL(reload_val); PrintDebug("\n"); @@ -673,7 +673,7 @@ static int pit_init(struct guest_info * info, void * cfg_data) { init_channel(&(pit_state->ch_1)); init_channel(&(pit_state->ch_2)); -#ifdef DEBUG_PIT +#ifdef CONFIG_DEBUG_PIT PrintDebug("8254 PIT: CPU MHZ=%d -- pit count=", cpu_khz / 1000); PrintTraceLL(pit_state->pit_counter); PrintDebug("\n");