monitor-manager-kms: Improve EDID error reporting

Include the connector name in the error message, and only include the
reason in the GError message.

https://bugzilla.gnome.org/show_bug.cgi?id=779837
This commit is contained in:
Jonas Ådahl 2017-03-10 15:12:52 +08:00
parent 73b2b30a1d
commit 5aa02c0378

View File

@ -332,7 +332,7 @@ read_edid_blob (MetaMonitorManagerKms *manager_kms,
if (!edid_blob)
{
g_set_error (error, G_IO_ERROR, g_io_error_from_errno (errno),
"Failed to get EDID property blob: %s", strerror (errno));
"%s", strerror (errno));
return NULL;
}
@ -907,7 +907,8 @@ init_output (MetaOutput *output,
edid = read_output_edid (manager_kms, output, &error);
if (!edid)
{
g_warning ("Failed to read EDID: %s", error->message);
g_warning ("Failed to read EDID blob from %s: %s",
output->name, error->message);
g_error_free (error);
}
}