Commit fb6f61b5 authored by Adam Jackson's avatar Adam Jackson 💣

Bug #4806: Dump the raw EDID contents in hex to the log file for better

    debugging. (Philip Prindeville)
parent 14af5037
3006-04-04 Adam Jackson <ajax@freedesktop.org>
* hw/xfree86/ddc/print_edid.c:
Bug #4806: Dump the raw EDID contents in hex to the log file for
better debugging. (Philip Prindeville)
2006-04-03 Adam Jackson <ajax@freedesktop.org>
* hw/xfree86/common/xf86Config.c:
......
......@@ -30,10 +30,16 @@ static void print_dpms_features(int scrnIndex, struct disp_features *,
static void print_whitepoint(int scrnIndex, struct disp_features *);
static void print_number_sections(int scrnIndex, int);
#define EDID_WIDTH 16
xf86MonPtr
xf86PrintEDID(xf86MonPtr m)
{
CARD16 i, j;
char buf[EDID_WIDTH * 2 + 1];
if (!(m)) return NULL;
print_vendor(m->scrnIndex,&m->vendor);
print_version(m->scrnIndex,&m->ver);
print_display(m->scrnIndex,&m->features, &m->ver);
......@@ -41,6 +47,15 @@ xf86PrintEDID(xf86MonPtr m)
print_std_timings(m->scrnIndex,m->timings2);
print_detailed_monitor_section(m->scrnIndex,m->det_mon);
print_number_sections(m->scrnIndex,m->no_sections);
xf86DrvMsg(m->scrnIndex, X_INFO, "EDID (in hex):\n");
for (i = 0; i < 128; i += j) {
for (j = 0; j < EDID_WIDTH; ++j) {
sprintf(&buf[j * 2], "%02x", m->rawData[i + j]);
}
xf86DrvMsg(m->scrnIndex, X_INFO, "\t%s\n", buf);
}
return m;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment