summaryrefslogtreecommitdiff
path: root/src/atombios_output.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-01-26 02:40:41 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-01-26 02:40:41 -0500
commit93ed767255b60fbdf5b416b9bd06c366036a5141 (patch)
tree72fe68add95260e658e81bf255995eba24b3ce4b /src/atombios_output.c
parentb515eee4b1cafae78ed39cd91c18b4f5e671b20b (diff)
Fix off by one when printing encoder name
- also cleanup some debugging output
Diffstat (limited to 'src/atombios_output.c')
-rw-r--r--src/atombios_output.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/atombios_output.c b/src/atombios_output.c
index 92ae3f54..cb1a01ca 100644
--- a/src/atombios_output.c
+++ b/src/atombios_output.c
@@ -54,7 +54,7 @@ atombios_output_dac_setup(xf86OutputPtr output, DisplayModePtr mode)
DAC_ENCODER_CONTROL_PS_ALLOCATION disp_data;
AtomBiosArgRec data;
unsigned char *space;
- int index;
+ int index, num = 0;
if (radeon_encoder == NULL)
return ATOM_NOT_IMPLEMENTED;
@@ -65,10 +65,12 @@ atombios_output_dac_setup(xf86OutputPtr output, DisplayModePtr mode)
case ENCODER_OBJECT_ID_INTERNAL_DAC1:
case ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1:
index = GetIndexIntoMasterTable(COMMAND, DAC1EncoderControl);
+ num = 1;
break;
case ENCODER_OBJECT_ID_INTERNAL_DAC2:
case ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2:
index = GetIndexIntoMasterTable(COMMAND, DAC2EncoderControl);
+ num = 2;
break;
}
@@ -102,11 +104,11 @@ atombios_output_dac_setup(xf86OutputPtr output, DisplayModePtr mode)
data.exec.pspace = &disp_data;
if (RHDAtomBiosFunc(info->atomBIOS->scrnIndex, info->atomBIOS, ATOMBIOS_EXEC, &data) == ATOM_SUCCESS) {
- ErrorF("Output DAC setup success\n");
+ ErrorF("Output DAC%d setup success\n", num);
return ATOM_SUCCESS;
}
- ErrorF("Output DAC setup failed\n");
+ ErrorF("Output DAC%d setup failed\n", num);
return ATOM_NOT_IMPLEMENTED;
}