!11 fix invalid format in i686
From: @nettingsisyphus Reviewed-by: @robertosassu Signed-off-by: @robertosassu
This commit is contained in:
commit
e667cb96c9
@ -1,12 +1,13 @@
|
|||||||
name: digest-list-tools
|
name: digest-list-tools
|
||||||
Version: 0.3.94
|
Version: 0.3.94
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Digest list tools
|
Summary: Digest list tools
|
||||||
|
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Url: https://gitee.com/openeuler/digest-list-tools
|
Url: https://gitee.com/openeuler/digest-list-tools
|
||||||
|
Patch0: fix-invalid-format-in-i686.patch
|
||||||
|
|
||||||
BuildRequires: autoconf automake libcurl-devel libtool rpm-devel dracut gzip
|
BuildRequires: autoconf automake libcurl-devel libtool rpm-devel dracut gzip
|
||||||
BuildRequires: libcap-devel libcmocka-devel
|
BuildRequires: libcap-devel libcmocka-devel
|
||||||
@ -100,6 +101,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/%{name}.1.gz
|
%{_mandir}/man1/%{name}.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 10 2020 Anakin Zhang <benjamin93@163.com> - 0.3.94-2
|
||||||
|
- fix invalid format in i686
|
||||||
|
|
||||||
* Thu Sep 03 2020 Roberto Sassu <roberto.sassu@huawei.com> - 0.3.94-1
|
* Thu Sep 03 2020 Roberto Sassu <roberto.sassu@huawei.com> - 0.3.94-1
|
||||||
- Add obj_label attribute in file list
|
- Add obj_label attribute in file list
|
||||||
- Replace hard coded permission
|
- Replace hard coded permission
|
||||||
|
|||||||
33
fix-invalid-format-in-i686.patch
Normal file
33
fix-invalid-format-in-i686.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
From cb64bc8e5c15dabc5c912e4621a54338716fb297 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anakin Zhang <benjamin93@163.com>
|
||||||
|
Date: Thu, 10 Sep 2020 11:56:04 +0800
|
||||||
|
Subject: [PATCH] fix invalid format in i686
|
||||||
|
|
||||||
|
Signed-off-by: Anakin Zhang <benjamin93@163.com>
|
||||||
|
---
|
||||||
|
lib/compact_list.c | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/lib/compact_list.c b/lib/compact_list.c
|
||||||
|
index dea6e9b..44cbd89 100644
|
||||||
|
--- a/lib/compact_list.c
|
||||||
|
+++ b/lib/compact_list.c
|
||||||
|
@@ -15,6 +15,7 @@
|
||||||
|
#define _GNU_SOURCE
|
||||||
|
#include <errno.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
+#include <inttypes.h>
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <keyutils.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
@@ -339,7 +340,7 @@ void compact_list_tlv_dump_items(struct _tlv_item **items)
|
||||||
|
case ID_FSMAGIC:
|
||||||
|
u64_value = *(u64 *)items[i]->data;
|
||||||
|
u64_value = le64_to_cpu(u64_value);
|
||||||
|
- printf("%lu", u64_value);
|
||||||
|
+ printf("%" PRIu64 "", u64_value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
Loading…
x
Reference in New Issue
Block a user