Skip to contentSkip to conversation

mtd: spi-nor: Indent SF: just like other boot time messages

PATCH In review Marek Vasut 2 participants 2 messages Oct 24 – Nov 6 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mtd: spi-nor: Indent SF: just like other boot time messages

From: Alexander Koch <[email protected]>

Indent SF: just like other boot time messages. Change the original indent:

"

DRAM:  3.5 GiB
Core:  310 devices, 34 uclasses, devicetree: separate
SF: Detected w25q128jw with page size 256 Bytes, erase size 4 KiB, total 16 MiB

"

to the fixed indent:

"

DRAM:  3.5 GiB
Core:  310 devices, 34 uclasses, devicetree: separate
SF:    Detected w25q128jw with page size 256 Bytes, erase size 4 KiB, total 16 MiB
    ^^^

"

No functional change.

---
Cc: Alexander Koch <[email protected]>
Cc: David Lechner <[email protected]>
Cc: Flaviu Nistor <[email protected]>
Cc: Miquel Raynal <[email protected]>
Cc: Takahiro Kuwano <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Tudor Ambarus <[email protected]>
Cc: Vignesh R <[email protected]>
Cc: [email protected]
---
V2: Fix tests

---
 drivers/mtd/spi/spi-nor-core.c | 2 +-
 test/boot/bootdev.c            | 4 ++--
 test/py/tests/test_env.py      | 2 +-
 test/py/tests/test_sf.py       | 2 +-
 test/py/tests/test_spi.py      | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
drivers/mtd/spi/spi-nor-core.c +1 -1
index 3556af3e77c..eb022e577a2 100644
@@ -4758,7 +4758,7 @@ int spi_nor_scan(struct spi_nor *nor)
 	nor->sector_size = mtd->erasesize;
 
 #ifndef CONFIG_XPL_BUILD
-	printf("SF: Detected %s with page size ", nor->name);
+	printf("SF:    Detected %s with page size ", nor->name);
 	print_size(nor->page_size, ", erase size ");
 	print_size(nor->erase_size, ", total ");
 	print_size(nor->size, "");
test/boot/bootdev.c +2 -2
index c2eaf0b2c55..c06c47a0633 100644
@@ -742,11 +742,11 @@ static int bootdev_test_next_prio(struct unit_test_state *uts)
 	 * starts looking at the devices, so we se virtio as well
 	 */
 	ut_assert_nextline("Hunting with: virtio");
-	ut_assert_nextlinen("SF: Detected m25p16");
+	ut_assert_nextlinen("SF:    Detected m25p16");
 
 	ut_assertok(bootdev_next_prio(&iter, &dev));
 	ut_asserteq_str("[email protected]", dev->name);
-	ut_assert_nextlinen("SF: Detected m25p16");
+	ut_assert_nextlinen("SF:    Detected m25p16");
 	ut_assert_console_end();
 
 	/* keep going until there are no more bootdevs */
test/py/tests/test_env.py +1 -1
index f8713a59ba9..16b1c4b26a4 100644
@@ -595,7 +595,7 @@ def test_env_spi_flash(state_test_env):
         spi_flash_img = mk_env_spi_flash_single(state_test_env)
 
         response = c.run_command('sf probe')
-        assert 'SF: Detected m25p16 with page size 256 Bytes, erase size 64 KiB, total 2 MiB' in response
+        assert 'SF:    Detected m25p16 with page size 256 Bytes, erase size 64 KiB, total 2 MiB' in response
 
         # force env location: SF
         response = c.run_command('env select SPIFlash')
test/py/tests/test_sf.py +1 -1
index 5b4ba80f18b..24447ff5e8f 100644
@@ -70,7 +70,7 @@ def sf_prepare(ubman, env__sf_config):
     cmd = 'sf probe %d %d' % (probe_id, sf_params['speed'])
 
     output = ubman.run_command(cmd)
-    assert 'SF: Detected' in output, 'No Flash device available'
+    assert 'SF:    Detected' in output, 'No Flash device available'
 
     m = re.search('page size (.+?) Bytes', output)
     assert m, 'SPI Flash page size not recognized'
test/py/tests/test_spi.py +1 -1
index 09174f91e98..5529b85941b 100644
@@ -112,7 +112,7 @@ def spi_pre_commands(ubman, freq):
     bus, cs, mode, part_name, timeout = get_params_spi(ubman)
 
     output = ubman.run_command(f'sf probe {bus}:{cs} {freq} {mode}')
-    if not 'SF: Detected' in output:
+    if not 'SF:    Detected' in output:
         pytest.fail('No SPI device available')
 
     if not part_name in output:
Signature · 1 line
2.53.0
#1 lore raw
Quoted 9 lines · Marek Vasut

Indent SF: just like other boot time messages. Change the original indent:

"

DRAM:  3.5 GiB
Core:  310 devices, 34 uclasses, devicetree: separate
SF: Detected w25q128jw with page size 256 Bytes, erase size 4 KiB, total 16 MiB

"

[...]

Applied to u-boot/main, thanks!

[1/1] mtd: spi-nor: Indent SF: just like other boot time messages

      commit: 5811f38a9b08decfe59f4714e86de96d997a3bd5
Signature · 1 line
Tom