From: Florian Fainelli Date: Tue, 9 May 2023 19:44:53 +0000 (-0700) Subject: mmc: block: Suppress empty whitespaces in prints X-Git-Tag: block-6.5-2023-07-03~6^2~40 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=78ce88e7581f5737c9e4f6aa6df7abbd4835ad1c;p=linux-block.git mmc: block: Suppress empty whitespaces in prints If the device is not read-only, then we will be printing an empty whitespace before the newline, fix that. Signed-off-by: Florian Fainelli Link: https://lore.kernel.org/r/20230509194455.1791890-1-f.fainelli@gmail.com Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index d920c4178389..21fdb4d43543 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -2505,9 +2505,9 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, string_get_size((u64)size, 512, STRING_UNITS_2, cap_str, sizeof(cap_str)); - pr_info("%s: %s %s %s %s\n", + pr_info("%s: %s %s %s%s\n", md->disk->disk_name, mmc_card_id(card), mmc_card_name(card), - cap_str, md->read_only ? "(ro)" : ""); + cap_str, md->read_only ? " (ro)" : ""); /* used in ->open, must be set before add_disk: */ if (area_type == MMC_BLK_DATA_AREA_MAIN)