spi: nxp-fspi: Adjust LUT debug output alignment
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Thu, 18 Jan 2024 12:10:16 +0000 (13:10 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 22 Jan 2024 00:06:54 +0000 (00:06 +0000)
Ensure the command value and LUT entry values have a fixed width. This
way consecutive output lines can be read much easier.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://msgid.link/r/20240118121016.3734770-1-alexander.stein@ew.tq-group.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-nxp-fspi.c

index e13f678f239524b368e3aefe709e4709d717340d..88397f712a3b5e70c6111e8dce8438babcbe92a0 100644 (file)
@@ -591,7 +591,7 @@ static void nxp_fspi_prepare_lut(struct nxp_fspi *f,
        for (i = 0; i < ARRAY_SIZE(lutval); i++)
                fspi_writel(f, lutval[i], base + FSPI_LUT_REG(i));
 
-       dev_dbg(f->dev, "CMD[%x] lutval[0:%x \t 1:%x \t 2:%x \t 3:%x], size: 0x%08x\n",
+       dev_dbg(f->dev, "CMD[%02x] lutval[0:%08x 1:%08x 2:%08x 3:%08x], size: 0x%08x\n",
                op->cmd.opcode, lutval[0], lutval[1], lutval[2], lutval[3], op->data.nbytes);
 
        /* lock LUT */