All the other calls to the controller driver display the error return code. The return code is helpful to understand what went wrong, so include it when failing to transfer one message.
Unified · Split
| @@ -1672,7 +1672,8 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread) · 1671 unmodified lines | ||
| 1672 | 1672 | ret = ctlr->transfer_one_message(ctlr, msg); |
| 1673 | 1673 | if (ret) { |
| 1674 | 1674 | dev_err(&ctlr->dev, |
| 1675 | − "failed to transfer one message from queue\n"); | |
| 1675 | + "failed to transfer one message from queue: %d\n", | |
| 1676 | + ret); | |
| 1676 | 1677 | goto out; |
| 1677 | 1678 | } |
| 1678 | 1679 | |