1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-29 07:53:44 +02:00

pickit2_spi.c: Replace hard-coded value with define in msg_perr()

Signed-off-by: Felix Singer <felixsinger@posteo.net>
Change-Id: Ia3fa89285d8761e51078afa486df50a7b8247fc5
Reviewed-on: https://review.coreboot.org/c/flashrom/+/66250
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Thomas Heijligen <src@posteo.de>
This commit is contained in:
Felix Singer 2022-07-29 03:09:02 +02:00 committed by Thomas Heijligen
parent ce16a1059f
commit 9e04991dc4

View File

@ -207,8 +207,8 @@ static int pickit2_spi_send_command(const struct flashctx *flash, unsigned int w
* and always assume the worst case scenario of 20 bytes command overhead. * and always assume the worst case scenario of 20 bytes command overhead.
*/ */
if (writecnt + readcnt + 20 > CMD_LENGTH) { if (writecnt + readcnt + 20 > CMD_LENGTH) {
msg_perr("\nTotal packetsize (%i) is greater than 64 supported, aborting.\n", msg_perr("\nTotal packetsize (%i) is greater than %i supported, aborting.\n",
writecnt + readcnt + 20); writecnt + readcnt + 20, CMD_LENGTH);
return 1; return 1;
} }