mirror of
https://git.proxmox.com/git/fwupd
synced 2026-01-26 23:16:31 +00:00
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:
parent
7cb2c1092c
commit
bae478f555
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user