pickit2_spi.c: Replace hard-coded value with define in msg_perr()
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Change-Id: Ia3fa89285d8761e51078afa486df50a7b8247fc5
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/66250
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Original-Reviewed-by: Thomas Heijligen <src@posteo.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71472
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/pickit2_spi.c b/pickit2_spi.c
index e997163..ebf0713 100644
--- a/pickit2_spi.c
+++ b/pickit2_spi.c
@@ -206,8 +206,8 @@
* and always assume the worst case scenario of 20 bytes command overhead.
*/
if (writecnt + readcnt + 20 > CMD_LENGTH) {
- msg_perr("\nTotal packetsize (%i) is greater than 64 supported, aborting.\n",
- writecnt + readcnt + 20);
+ msg_perr("\nTotal packetsize (%i) is greater than %i supported, aborting.\n",
+ writecnt + readcnt + 20, CMD_LENGTH);
return 1;
}