summaryrefslogtreecommitdiffstats
path: root/ft2232_spi.c
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2021-06-20 16:46:31 +0200
committerNico Huber <nico.h@gmx.de>2021-06-25 12:56:32 +0000
commitae836bd00f41b8d71ce1ef9e590016b5fd43263e (patch)
tree252712c37ad98de6791fc56856955fd0628041a4 /ft2232_spi.c
parente1e0c597db71e1abf4e1eedf0f4927b260f9dfef (diff)
downloadflashrom-ae836bd00f41b8d71ce1ef9e590016b5fd43263e.tar.gz
flashrom-ae836bd00f41b8d71ce1ef9e590016b5fd43263e.tar.bz2
flashrom-ae836bd00f41b8d71ce1ef9e590016b5fd43263e.zip
ft2232_spi: Revise error message
Reword the message and drop the error string from libftdi. It is already printed in send_buf(). Change-Id: I125ae9ec0d5487fc26d588a7fd6c54da4ebd0d70 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/55697 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'ft2232_spi.c')
-rw-r--r--ft2232_spi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ft2232_spi.c b/ft2232_spi.c
index 82777a2c2..d853b09fb 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -180,8 +180,7 @@ static int ft2232_shutdown(void *data)
buf[1] = 0; /* Output byte ignored */
buf[2] = 0; /* Pin direction: all inputs */
if (send_buf(ftdic, buf, 3)) {
- msg_perr("Unable to set pins back inputs: (%s)\n",
- ftdi_get_error_string(ftdic));
+ msg_perr("Unable to set pins back to inputs.\n");
ret = 1;
}