!9 [sync] PR-7: add command --compat-uuid

Merge pull request !9 from openeuler-sync-bot/sync-pr7-openEuler-22.03-LTS-Next-to-master
This commit is contained in:
openeuler-ci-bot 2022-01-29 06:54:28 +00:00 committed by Gitee
commit 806cbbbbf7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 9 additions and 4 deletions

View File

@ -20,9 +20,9 @@ index a3e9d6c..35c19c2 100644
*/
- if (ver >= 0x0206)
+ if (ver >= 0x0206 && !(opt.flags & FLAG_COMPAT_UUID))
printf("%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
p[3], p[2], p[1], p[0], p[5], p[4], p[7], p[6],
p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]);
{
if (print_cb)
print_cb(attr,
diff --git a/dmiopt.c b/dmiopt.c
index 2f285f3..dede0f9 100644
--- a/dmiopt.c

View File

@ -1,6 +1,6 @@
Name: dmidecode
Version: 3.3
Release: 1
Release: 2
Epoch: 1
Summary: DMI data report tool
@ -8,6 +8,8 @@ License: GPLv2+
URL: https://www.nongnu.org/dmidecode/
Source0: http://download.savannah.gnu.org/releases/dmidecode/%{name}-%{version}.tar.xz
Patch6000: bugfix-compat_uuid.patch
BuildRequires: make gcc xz
ExclusiveArch: %{ix86} x86_64 ia64 aarch64 amd64
@ -48,6 +50,9 @@ make %{?_smp_mflags} CFLAGS="%{__global_cflags}" LDFLAGS="%{__global_ldflags}"
%{_mandir}/man8/*.8.gz
%changelog
* Sat Jan 29 2022 Yang Yanchao <yangyanchao6@huawei.com> - 3.3-2
- add command --compat-uuid
* Tue Nov 30 2021 zhouwenpei <zhouwenpei1@huawei.com> - 3.3-1
- update to 3.3