ccgx: Be more precise when adding the instance ID

All the existing quirks are luckily 4 digits already, but this might
not always be true in the future.
This commit is contained in:
Richard Hughes 2022-03-01 09:44:15 +00:00
parent 5bc5462213
commit f8aec20233

View File

@ -1350,7 +1350,7 @@ fu_ccgx_hpi_device_ensure_silicon_id(FuCcgxHpiDevice *self, GError **error)
return FALSE;
/* add quirks */
instance_id = g_strdup_printf("CCGX\\SID_%X", self->silicon_id);
instance_id = g_strdup_printf("CCGX\\SID_%04X", self->silicon_id);
fu_device_add_instance_id_full(FU_DEVICE(self),
instance_id,
FU_DEVICE_INSTANCE_FLAG_ONLY_QUIRKS);