fwinfo.c:258: warning: format ‘%u’ expects type ‘unsigned int’, but argument 3 has type ‘size_t’
eeprom_fix.c:235: warning: overflow in implicit constant conversion
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
}
void *carlfw_desc_mod_len(struct carlfw *fw __unused,
- struct carl9170fw_desc_head *desc, int len)
+ struct carl9170fw_desc_head *desc, size_t len)
{
struct carlfw_list_entry *obj, tmp;
int new_len = le16_to_cpu(desc->length) + len;
void *carlfw_desc_mod_len(struct carlfw *fw,
struct carl9170fw_desc_head *desc,
- int len);
+ size_t len);
int carlfw_desc_add_before(struct carlfw *fw,
const struct carl9170fw_desc_head *desc,
carlfw_get_fw(fw, &len);
fprintf(stdout, "General Firmware Statistics:\n");
- fprintf(stdout, "\tFirmware file size: %u Bytes\n", len);
+ fprintf(stdout, "\tFirmware file size: %u Bytes\n", (unsigned int)len);
fprintf(stdout, "\t%d Descriptors in %d Bytes\n",
carlfw_get_descs_num(fw), carlfw_get_descs_size(fw));