trivial: Make clear sizes are in hex

This commit is contained in:
Richard Hughes 2022-03-07 12:38:33 +00:00
parent 41e2f93fc7
commit 66cb93c4e2

View File

@ -3707,8 +3707,8 @@ fu_device_prepare_firmware(FuDevice *self, GBytes *fw, FwupdInstallFlags flags,
g_set_error(error, g_set_error(error,
FWUPD_ERROR, FWUPD_ERROR,
FWUPD_ERROR_INVALID_FILE, FWUPD_ERROR_INVALID_FILE,
"firmware is %04x bytes larger than the allowed " "firmware is 0x%04x bytes larger than the allowed "
"maximum size of %04x bytes", "maximum size of 0x%04x bytes",
(guint)(fw_sz - priv->size_max), (guint)(fw_sz - priv->size_max),
(guint)priv->size_max); (guint)priv->size_max);
return NULL; return NULL;