summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorDragan Simic <dsimic@manjaro.org>2025-02-26 20:26:18 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2025-03-12 11:30:22 +0100
commit3b791214c8bc1bc0eb3153a195c342b8a98f767b (patch)
tree7732763ae5a7d5a6be965038b52aeba629d9ca22 /tools/perf
parentc784b7617c9e0e31e363cb2d1ce961c122c25d21 (diff)
mmc: core: Trim trailing whitespace from card product names
Product names for some eMMC chips can include trailing whitespace, which seems to be rather uncommon, but makes emitted messages and /sys properties somewhat unsightly. Here's such an example from a Pine64 PineNote, in which "Biwin ", as the eMMC product name, contains trailing whitespace: mmc0: new HS200 MMC card at address 0001 mmcblk0: mmc0:0001 Biwin 115 GiB mmcblk0: p1 p2 p3 p4 p5 p6 p7 mmcblk0boot0: mmc0:0001 Biwin 4.00 MiB mmcblk0boot1: mmc0:0001 Biwin 4.00 MiB mmcblk0rpmb: mmc0:0001 Biwin 4.00 MiB, chardev (249:0) Trailing whitespace in /sys properties may even cause some unforeseen issues with some scripts, so let's have the trailing whitespace trimmed in product names for eMMC chips. Although not observed yet by the author of these changes, the same trailing whitespace may appear in SD card product names, so let's trim them as well, which can't hurt. Touch-up one comment as well, by using proper capitalization. Signed-off-by: Dragan Simic <dsimic@manjaro.org> Acked-by: Avri Altman <avri.altman@sandisk.com> Link: https://lore.kernel.org/r/fb7fcecae737f3e8b279854d7c853000527cba9a.1740597891.git.dsimic@manjaro.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions