diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2023-05-09 21:44:53 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2023-06-12 15:16:18 +0200 |
commit | 78ce88e7581f5737c9e4f6aa6df7abbd4835ad1c (patch) | |
tree | 0ca7be472da419b247fbef1c14322463229703e2 /drivers/mmc | |
parent | dt-bindings: mmc: sdhci-msm: Document SC8280XP SDHCI (diff) | |
download | linux-78ce88e7581f5737c9e4f6aa6df7abbd4835ad1c.tar.xz linux-78ce88e7581f5737c9e4f6aa6df7abbd4835ad1c.zip |
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 <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230509194455.1791890-1-f.fainelli@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/block.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |