chromeec: Fix printf formatting warning
src/ec/google/chromeec/ec_lpc.c: In function ‘google_chromeec_command_v3’: src/ec/google/chromeec/ec_lpc.c:88:3: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘unsigned int’ [-Werror=format=] printk(BIOS_ERR, "EC cannot send %ld bytes\n", ^ cc1: all warnings being treated as errors Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Change-Id: I0d47350f00102a959d54a64b8f932099fc13f886 Reviewed-on: http://review.coreboot.org/9558 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
f85640dfcc
commit
e95db22c75
|
@ -85,7 +85,7 @@ static int google_chromeec_command_v3(struct chromeec_command *cec_command)
|
|||
int i;
|
||||
|
||||
if (cec_command->cmd_size_in + sizeof(rq) > EC_LPC_HOST_PACKET_SIZE) {
|
||||
printk(BIOS_ERR, "EC cannot send %ld bytes\n",
|
||||
printk(BIOS_ERR, "EC cannot send %zu bytes\n",
|
||||
cec_command->cmd_size_in + sizeof(rq));
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue