summaryrefslogtreecommitdiff
path: root/src/ec/google
diff options
context:
space:
mode:
authorAnatol Pomozov <anatol.pomozov@gmail.com>2015-04-09 20:58:02 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-04-14 09:01:03 +0200
commite95db22c7517d7c3b02b0aa1efc79a21af8b0844 (patch)
tree1569b535d2ff92b8ab3251c0e5294f61ee8b5222 /src/ec/google
parentf85640dfcc8badb4c109954069a785237224b69b (diff)
downloadcoreboot-e95db22c7517d7c3b02b0aa1efc79a21af8b0844.tar.xz
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>
Diffstat (limited to 'src/ec/google')
-rw-r--r--src/ec/google/chromeec/ec_lpc.c2
1 files changed, 1 insertions, 1 deletions
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;
}