]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
cmd: mmc: Drop trailing space in Name: before newline
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 8 Feb 2026 14:51:03 +0000 (15:51 +0100)
committerPeng Fan <peng.fan@nxp.com>
Wed, 25 Feb 2026 07:07:54 +0000 (15:07 +0800)
The Name: line of 'mmc info' command prints a trailing space before
newline. This is not useful and shows up as trailing space e.g. when
the output is checked into documentation. Remove the trailing space.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
cmd/mmc.c

index 6cb1ef5dc23e35beca912a13e90c24bfcd7e0c60..81b1ca4ad84635b830a226b57fbb22194f5d8eda 100644 (file)
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -29,12 +29,12 @@ static void print_mmcinfo(struct mmc *mmc)
        printf("Manufacturer ID: %x\n", mmc->cid[0] >> 24);
        if (IS_SD(mmc)) {
                printf("OEM: %x\n", (mmc->cid[0] >> 8) & 0xffff);
-               printf("Name: %c%c%c%c%c \n", mmc->cid[0] & 0xff,
+               printf("Name: %c%c%c%c%c\n", mmc->cid[0] & 0xff,
                (mmc->cid[1] >> 24), (mmc->cid[1] >> 16) & 0xff,
                (mmc->cid[1] >> 8) & 0xff, mmc->cid[1] & 0xff);
        } else {
                printf("OEM: %x\n", (mmc->cid[0] >> 8) & 0xff);
-               printf("Name: %c%c%c%c%c%c \n", mmc->cid[0] & 0xff,
+               printf("Name: %c%c%c%c%c%c\n", mmc->cid[0] & 0xff,
                (mmc->cid[1] >> 24), (mmc->cid[1] >> 16) & 0xff,
                (mmc->cid[1] >> 8) & 0xff, mmc->cid[1] & 0xff,
                (mmc->cid[2] >> 24));