summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-02-08 15:51:03 +0100
committerPeng Fan <[email protected]>2026-02-25 15:07:54 +0800
commit6f7d976317c59aad1af0b8bb169adca9b5802ca0 (patch)
tree26bc34902e7fc83305aa2f6aab298d4ef20fee88
parent8fd76675efbe7af785ccc1ba1ac8b9f7e10f6715 (diff)
cmd: mmc: Drop trailing space in Name: before newline
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 <[email protected]> Reviewed-by: Tom Rini <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Signed-off-by: Peng Fan <[email protected]>
-rw-r--r--cmd/mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/mmc.c b/cmd/mmc.c
index 6cb1ef5dc23..81b1ca4ad84 100644
--- 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));