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:
parent
ce16a1059f
commit
9e04991dc4
@ -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.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user