diff options
author | Miklós Márton <martonmiklosqdev@gmail.com> | 2020-07-26 10:40:46 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-08-04 13:15:28 +0000 |
commit | 47143bc9a5feb26c39a97597b447ff11d02c413d (patch) | |
tree | 696f1375295946017985f82abf0b80928ae9d695 | |
parent | f4eeefd8aba94aca007c8f4b65b551df3a5fa07a (diff) | |
download | flashrom-47143bc9a5feb26c39a97597b447ff11d02c413d.tar.gz flashrom-47143bc9a5feb26c39a97597b447ff11d02c413d.tar.bz2 flashrom-47143bc9a5feb26c39a97597b447ff11d02c413d.zip |
stlinkv3_spi.c: Improve printed messages
Add missing line ends, and add a note about the first version of the
updater which contains the necessary V3 bridge feature.
Change-Id: Ib45efa37b192489bdfe26f1f0fd1d81035a08c70
Signed-off-by: Miklós Márton <martonmiklosqdev@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/43900
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | stlinkv3_spi.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/stlinkv3_spi.c b/stlinkv3_spi.c index ae865be1..7e8336e1 100644 --- a/stlinkv3_spi.c +++ b/stlinkv3_spi.c @@ -253,21 +253,22 @@ static int stlinkv3_spi_open(uint16_t reqested_freq_in_kHz) enum fw_version_check_result fw_check_result; if (stlinkv3_check_version(&fw_check_result)) { - msg_perr("Failed to query FW version"); + msg_perr("Failed to query FW version\n"); return -1; } if (fw_check_result != FW_VERSION_OK) { - msg_pinfo("Your STLink V3 has too old version of the bridge interface\n" - "Please update the firmware with the STSW-LINK007 which can be downloaded from here:\n" - "https://www.st.com/en/development-tools/stsw-link007.html"); + msg_pinfo("Your STLink V3 has a too old version of the bridge interface\n" + "Please update the firmware to version 2.33.25 or newer of the STSW-LINK007\n" + "which can be downloaded from here:\n" + "https://www.st.com/en/development-tools/stsw-link007.html\n"); return -1; } if (stlinkv3_spi_calc_prescaler(reqested_freq_in_kHz, &prescaler, &SCK_freq_in_kHz)) { - msg_perr("Failed to calculate SPI clock prescaler"); + msg_perr("Failed to calculate SPI clock prescaler\n"); return -1; } msg_pinfo("SCK frequency set to %d kHz\n", SCK_freq_in_kHz); |