<div dir="ltr">The patch 28704e18d1656bdaf3e33558e0a148b666d7590d breaks the build.<div><div><br></div><div><div>gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Werror -I../../lib -I../../src/api -I../../src/common -I../../src/libminicoredumper -DMCD_CONF_PATH=\"/usr/local/etc/minicore</div><div>dumper\"  -I/usr/include/json-c  -std=c99 -g -O2 -MT minicoredumper-corestripper.o -MD -MP -MF .deps/minicoredumper-corestripper.Tpo -c -o minicoredumper-corestripper.o `test -f 'corestripper.c' || ech</div><div>o './'`corestripper.c</div><div>corestripper.c: In function ‘dump_compressed_tar’:</div><div>corestripper.c:1244:41: error: format ‘%lo’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘long long int’ [-Werror=format=]</div><div>  snprintf(hdr.mtime, sizeof(hdr.mtime), "%011lo",</div><div>                                         ^</div><div>corestripper.c:1244:41: error: format ‘%lo’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘long long int’ [-Werror=format=]</div></div><div><br></div></div><div>The following patch fix the problem;</div><div><div>From 94f99f63eb7188ef74e953f6e98304af51e15c92 Mon Sep 17 00:00:00 2001</div><div>Message-Id: <<a href="mailto:94f99f63eb7188ef74e953f6e98304af51e15c92.1493041764.git.anders.wallin@windriver.com">94f99f63eb7188ef74e953f6e98304af51e15c92.1493041764.git.anders.wallin@windriver.com</a>></div><div>From: Anders Wallin <<a href="mailto:anders.wallin@windriver.com">anders.wallin@windriver.com</a>></div><div>Date: Mon, 24 Apr 2017 15:48:02 +0200</div><div>Subject: [PATCH 1/2] using long long format when adding time to header</div><div><br></div><div>Signed-off-by: Anders Wallin <<a href="mailto:anders.wallin@windriver.com">anders.wallin@windriver.com</a>></div><div>---</div><div> src/minicoredumper/corestripper.c | 2 +-</div><div> 1 file changed, 1 insertion(+), 1 deletion(-)</div><div><br></div><div>diff --git a/src/minicoredumper/corestripper.c b/src/minicoredumper/corestripper.c</div><div>index 7d46af1..11e0df1 100644</div><div>--- a/src/minicoredumper/corestripper.c</div><div>+++ b/src/minicoredumper/corestripper.c</div><div>@@ -1241,7 +1241,7 @@ static int dump_compressed_tar(struct dump_info *di)</div><div>        snprintf(hdr.mode, sizeof(hdr.mode), "%07o", 0644);</div><div>        snprintf(hdr.uid, sizeof(hdr.uid), "%07o", 0);</div><div>        snprintf(hdr.gid, sizeof(hdr.gid), "%07o", 0);</div><div>-       snprintf(hdr.mtime, sizeof(hdr.mtime), "%011lo",</div><div>+       snprintf(hdr.mtime, sizeof(hdr.mtime), "%011llo",</div><div>                 (long long)time(NULL));</div><div>        memset(hdr.checksum, ' ', sizeof(hdr.checksum));</div><div>        hdr.type = 'S';</div><div>-- </div><div>2.11.0</div></div><div><br></div><div><br></div></div>