Re: [PATCH 7/7] spi: spidev_test: print TX on error
From: Mark Brown
Date: Mon Sep 14 2026 - 14:23:10 EST
On Mon, Sep 14, 2026 at 04:50:46PM +0200, Jonas Rebmann wrote:
> From: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
>
> If sending an spi message fails, dump it to the console.
It could be very large... possibly gate on verbosity, or limit the
length?
> - if (ret < 1)
> + if (ret < 1) {
> + if (tx)
> + hex_dump(tx, len, 32, "TX");
> pabort("can't send spi message");
> + }
Writing to the console could overwrite errno here.
Attachment:
signature.asc
Description: PGP signature