trivial: synapticsmst: clarify some error flows

As seen in the previous commit if ESM update failed some error prefixes
are not useful, clarify them.
This commit is contained in:
Mario Limonciello 2018-09-28 08:19:09 -05:00 committed by Mario Limonciello
parent 7cb2c1092c
commit bae478f555
2 changed files with 4 additions and 4 deletions

View File

@ -179,7 +179,7 @@ synapticsmst_common_rc_set_command (SynapticsMSTConnection *connection,
REG_RC_DATA,
buf, cur_length,
error)) {
g_prefix_error (error, "failed to write data: ");
g_prefix_error (error, "failure writing data register: ");
return FALSE;
}
@ -188,7 +188,7 @@ synapticsmst_common_rc_set_command (SynapticsMSTConnection *connection,
REG_RC_OFFSET,
(guint8 *)&cur_offset, 4,
error)) {
g_prefix_error (error, "failed to write offset: ");
g_prefix_error (error, "failure writing offset register: ");
return FALSE;
}
@ -197,7 +197,7 @@ synapticsmst_common_rc_set_command (SynapticsMSTConnection *connection,
REG_RC_LEN,
(guint8 *)&cur_length, 4,
error)) {
g_prefix_error (error, "failed to write length: ");
g_prefix_error (error, "failure writing length register: ");
return FALSE;
}
}

View File

@ -651,7 +651,7 @@ synapticsmst_device_update_esm (SynapticsMSTDevice *device,
g_set_error (error,
G_IO_ERROR,
G_IO_ERROR_INVALID_DATA,
"ESM update failed after %u tries", retries_cnt);
"checksum did not match after %u tries", retries_cnt);
return FALSE;
}
}