[coreboot-gerrit] New patch to review for coreboot: aa000c1 chromeec: Fix printf formatting warning
Anatol Pomozov (anatol.pomozov@gmail.com)
gerrit at coreboot.org
Fri Apr 10 22:00:38 CEST 2015
Anatol Pomozov (anatol.pomozov at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9558
-gerrit
commit aa000c1b6326bc5da3047f50451422301d62d70e
Author: Anatol Pomozov <anatol.pomozov at gmail.com>
Date: Thu Apr 9 20:58:02 2015 -0700
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 at gmail.com>
Change-Id: I0d47350f00102a959d54a64b8f932099fc13f886
---
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 4bd58ef..8ebc1ba 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 %u bytes\n",
cec_command->cmd_size_in + sizeof(rq));
return -1;
}
More information about the coreboot-gerrit
mailing list