From e95db22c7517d7c3b02b0aa1efc79a21af8b0844 Mon Sep 17 00:00:00 2001 From: Anatol Pomozov Date: Thu, 9 Apr 2015 20:58:02 -0700 Subject: [PATCH] chromeec: Fix printf formatting warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Change-Id: I0d47350f00102a959d54a64b8f932099fc13f886 Reviewed-on: http://review.coreboot.org/9558 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/ec/google/chromeec/ec_lpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ec/google/chromeec/ec_lpc.c b/src/ec/google/chromeec/ec_lpc.c index 4bd58ef792..061c1032c1 100644 --- a/src/ec/google/chromeec/ec_lpc.c +++ b/src/ec/google/chromeec/ec_lpc.c @@ -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; }