diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-09-08 15:08:37 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-09-13 11:13:22 +0200 |
commit | 7a873e61d55dcea56dc5b45adfbc4ab18a58e976 (patch) | |
tree | 7bc67102865b43d55b130dfca62f80b70a3bf728 /meta-oe/recipes-kernel/minicoredumper/files | |
parent | ba478fc6b2e901356d93371f863d9113136b7fc4 (diff) | |
download | meta-openembedded-7a873e61d55dcea56dc5b45adfbc4ab18a58e976.tar.gz |
minicoredumper: Switch src_uri to upstream lf git
COPYING file changed since copyright is now assined to linutronix from Erricson
Fix build on arm
Fixes error like
corestripper.c:1245:4: error: format specifies type 'unsigned long' but the arg
ument has type 'long long' [-Werror,-Wformat]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-kernel/minicoredumper/files')
-rw-r--r-- | meta-oe/recipes-kernel/minicoredumper/files/0001-fix-compile-error-on-arch-x32.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/minicoredumper/files/0001-fix-compile-error-on-arch-x32.patch b/meta-oe/recipes-kernel/minicoredumper/files/0001-fix-compile-error-on-arch-x32.patch new file mode 100644 index 000000000..6ba6ad481 --- /dev/null +++ b/meta-oe/recipes-kernel/minicoredumper/files/0001-fix-compile-error-on-arch-x32.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 883f53ee33eaef8aca1288a110857402ad362966 Mon Sep 17 00:00:00 2001 | ||
2 | From: John Ogness <john.ogness@linutronix.de> | ||
3 | Date: Fri, 8 Sep 2017 15:03:03 -0700 | ||
4 | Subject: [PATCH] fix compile error on arch=x32 | ||
5 | |||
6 | On the x32 architecture time_t is a "long long int". By | ||
7 | typecasting time_t to "long long", this should work correctly | ||
8 | for all architectures. | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | Upstream-Status: Pending | ||
13 | |||
14 | src/minicoredumper/corestripper.c | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/minicoredumper/corestripper.c b/src/minicoredumper/corestripper.c | ||
18 | index fd39bfb..07dc318 100644 | ||
19 | --- a/src/minicoredumper/corestripper.c | ||
20 | +++ b/src/minicoredumper/corestripper.c | ||
21 | @@ -1241,7 +1241,7 @@ static int dump_compressed_tar(struct dump_info *di) | ||
22 | snprintf(hdr.mode, sizeof(hdr.mode), "%07o", 0644); | ||
23 | snprintf(hdr.uid, sizeof(hdr.uid), "%07o", 0); | ||
24 | snprintf(hdr.gid, sizeof(hdr.gid), "%07o", 0); | ||
25 | - snprintf(hdr.mtime, sizeof(hdr.mtime), "%011lo", | ||
26 | + snprintf(hdr.mtime, sizeof(hdr.mtime), "%011llo", | ||
27 | (long long)time(NULL)); | ||
28 | memset(hdr.checksum, ' ', sizeof(hdr.checksum)); | ||
29 | hdr.type = 'S'; | ||
30 | -- | ||
31 | 2.14.1 | ||
32 | |||