[coreboot-gerrit] Patch set updated for coreboot: 83745b4 chromeec: Fix printf formatting warning

Anatol Pomozov (anatol.pomozov@gmail.com) gerrit at coreboot.org
Fri Apr 10 23:15:20 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 83745b499130024ef44e85efb96136385796fb76
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..061c103 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;
 	}



More information about the coreboot-gerrit mailing list