int ret;
if (request->payload_size < sizeof(*hotplug)) {
- dev_err(dev, "%s: short hotplug request received\n", __func__);
+ dev_err(dev, "%s: short hotplug request received (%zu < %zu)\n",
+ __func__, request->payload_size, sizeof(*hotplug));
return -EINVAL;
}
if (request->payload_size < sizeof(*hot_unplug)) {
dev_err(&op->connection->dev,
- "short hot unplug request received\n");
+ "short hot unplug request received (%zu < %zu)\n",
+ request->payload_size, sizeof(*hot_unplug));
return -EINVAL;
}
if (request->payload_size < sizeof(*reset)) {
dev_err(&op->connection->dev,
- "short reset request received\n");
+ "short reset request received (%zu < %zu)\n",
+ request->payload_size, sizeof(*reset));
return -EINVAL;
}
reset = request->payload;