jlink_spi.c: Correct some log messages
Fix a few typos and a copy-paste error in log messages.
Change-Id: Ic69503f60a59aa0f4b991eaa2a7be40a7d9c1301
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/52412
Original-Reviewed-by: Miklós Márton <martonmiklosqdev@gmail.com>
Original-Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71343
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/jlink_spi.c b/jlink_spi.c
index 3a73c01..f2702fa 100644
--- a/jlink_spi.c
+++ b/jlink_spi.c
@@ -134,7 +134,7 @@
ret = jaylink_jtag_io(jaylink_devh, buffer, buffer, buffer, length * 8, JAYLINK_JTAG_VERSION_2);
if (ret != JAYLINK_OK) {
- msg_perr("jaylink_jag_io() failed: %s.\n", jaylink_strerror(ret));
+ msg_perr("jaylink_jtag_io() failed: %s.\n", jaylink_strerror(ret));
free(buffer);
return SPI_PROGRAMMER_ERROR;
}
@@ -212,7 +212,7 @@
if (arg) {
if (!strlen(arg)) {
- msg_perr("Emptpy serial number specified.\n");
+ msg_perr("Empty serial number specified.\n");
free(arg);
return 1;
}
@@ -268,7 +268,7 @@
ret = jaylink_discovery_scan(jaylink_ctx, 0);
if (ret != JAYLINK_OK) {
- msg_perr("jaylink_discover_scan() failed: %s.\n", jaylink_strerror(ret));
+ msg_perr("jaylink_discovery_scan() failed: %s.\n", jaylink_strerror(ret));
return 1;
}
@@ -363,7 +363,7 @@
ret = jaylink_get_extended_caps(jaylink_devh, caps);
if (ret != JAYLINK_OK) {
- msg_perr("jaylink_get_available_interfaces() failed: %s.\n", jaylink_strerror(ret));
+ msg_perr("jaylink_get_extended_caps() failed: %s.\n", jaylink_strerror(ret));
return 1;
}
}