pos = sizeof(*header) + sizeof(*adsp1_sizes) + sizeof(*footer);
if (pos >= firmware->size) {
- dev_err(codec->dev, "%s: file too short, %d bytes\n",
+ dev_err(codec->dev, "%s: file too short, %zu bytes\n",
file, firmware->size);
return -EINVAL;
}
}
if (pos > firmware->size)
- dev_warn(codec->dev, "%s.%d: %d bytes at end of file\n",
+ dev_warn(codec->dev, "%s.%d: %zu bytes at end of file\n",
file, regions, pos - firmware->size);
out:
}
algs = be32_to_cpu(id.algs);
- dev_info(codec->dev, "Firmware: %x v%d.%d.%d, %d algorithms\n",
+ dev_info(codec->dev, "Firmware: %x v%d.%d.%d, %zu algorithms\n",
be32_to_cpu(id.fw.id),
(be32_to_cpu(id.fw.ver) & 0xff000) >> 16,
(be32_to_cpu(id.fw.ver) & 0xff00) >> 8,
}
if (be32_to_cpu(val) != 0xbedead)
- dev_warn(codec->dev, "Algorithm list end %x 0x%x != 0xbeadead\n",
+ dev_warn(codec->dev, "Algorithm list end %zx 0x%x != 0xbeadead\n",
(sizeof(id) + (algs * sizeof(*alg))) / 2,
be32_to_cpu(val));
}
if (sizeof(*hdr) >= firmware->size) {
- dev_err(codec->dev, "%s: file too short, %d bytes\n",
+ dev_err(codec->dev, "%s: file too short, %zu bytes\n",
file, firmware->size);
return -EINVAL;
}
}
if (pos > firmware->size)
- dev_warn(codec->dev, "%s.%d: %d bytes at end of file\n",
+ dev_warn(codec->dev, "%s.%d: %zu bytes at end of file\n",
file, blocks, pos - firmware->size);
return 0;