sna: Add some extra logging for hotplugging of outputs

References: https://bugs.freedesktop.org/show_bug.cgi?id=82153
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-08-05 10:19:05 +01:00
parent 5926da0ab3
commit 941ae4c868
2 changed files with 14 additions and 2 deletions

View File

@ -2823,7 +2823,7 @@ sna_output_get_modes(xf86OutputPtr output)
mode);
Modes = xf86ModesAdd(Modes, mode);
if (current && xf86ModesEqual(mode, current)) {
free(current->name);
free((void*)current->name);
free(current);
current = NULL;
}
@ -3726,6 +3726,9 @@ reset:
(unsigned long)(uintptr_t)output->crtc));
assert(sna_output->id == id);
xf86DrvMsg(scrn->scrnIndex, X_INFO,
"Enabled output %s\n",
output->name);
return 1;
cleanup:
@ -3893,8 +3896,14 @@ void sna_mode_discover(struct sna *sna)
DBG(("%s: removing output %s (id=%d), serial=%u [now %u]\n",
__FUNCTION__, output->name, to_sna_output(output)->id,
to_sna_output(output)->serial, serial));
xf86DrvMsg(sna->scrn->scrnIndex, X_INFO,
"%s output %s\n",
sna->flags & SNA_REMOVE_OUTPUTS ? "Removed" : "Disabled",
output->name);
if (sna->flags & SNA_REMOVE_OUTPUTS) {
sna_output_del(output); i--;
sna_output_del(output);
i--;
} else {
to_sna_output(output)->id = 0;
output->crtc = NULL;

View File

@ -300,6 +300,9 @@ static bool add_fake_output(struct sna *sna, bool late)
}
sna->mode.num_fake++;
xf86DrvMsg(scrn->scrnIndex, X_INFO,
"Enabled output %s\n",
output->name);
return true;
err: