From nobody Sun May 19 23:41:31 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+40046+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40046+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1557153406; cv=none; d=zoho.com; s=zohoarc; b=H4/p2ETOdTfLSvxYYRvqY9Z6ESKDN+MTurrQ1ArG18ZAtP+6vCkNzMQ45qVC7U6m+S+Wg+EPElUKMQgOvxLpai79jqdL1z6rgv3DNmh4vjNvMwDipuh6iaTtAgNROEmTrBXTgF1l6Y0vexbS6DnTCNm3Humb0bCl7e6Qmsi0nTc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557153406; h=Content-Type:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=rua1ITLH7Gh3DewnQrbGyrJJHsfxLUpTMH83WMK3q1s=; b=CEjT90O5DT5c2mnlRS9/ipTsXs/ndjvUb3oJ5G+kd1dQzPBxcCm7qSkaxl9nDiEn8/z6AdsktvglgiEPCr9rXgRQncL8lY56Qou2NwBH5ACHBAnjKkMrcOOlFGvnrDk8Nje+/FFwYPB/KlTK0csSNji3BptjGjOHx/qz+02Jm78= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40046+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1557153406573903.1209622873357; Mon, 6 May 2019 07:36:46 -0700 (PDT) Return-Path: X-Received: from out01.hibox.biz (out01.hibox.biz [210.71.195.41]) by groups.io with SMTP; Sun, 05 May 2019 20:10:38 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AFAADIo89c/ww0GKxlGgEBAQEBAgE?= =?us-ascii?q?BAQEHAgEBAQGBUQUBAQEBCwGINYgcn1tjhRgUgWcQgXiCdYIrNAkOAQMBAQU?= =?us-ascii?q?BAQEBAoEVhXQEUQEoFBYEBwILAwIBAgFYAQcBAa8CfCUOGgIDhSmDG4FFgTI?= =?us-ascii?q?BgV+IUIJ1P4N1bIEOgnuDRYJYBJJTOjuTagcCggtSBJFvG4wnA4keLYNDlTy?= =?us-ascii?q?IAIFPgg4zGiODPYIZARcUjhiSJAEB?= X-IronPort-AV: E=Sophos;i="5.60,435,1549900800"; d="scan'208,217";a="35685642" X-Received: from unknown (HELO hb3-BKT202.hibox.biz) ([172.24.52.12]) by out01.hibox.biz with ESMTP; 06 May 2019 11:10:35 +0800 X-Received: from unknown (HELO hb3-BKT103.hibox.biz) ([172.24.51.13]) by hb3-BKT202.hibox.biz with ESMTP; 06 May 2019 11:10:34 +0800 X-Received: from unknown (HELO hb3-IN05.hibox.biz) ([172.24.12.15]) by hb3-BKT103.hibox.biz with ESMTP; 06 May 2019 11:10:35 +0800 X-Remote-IP: 60.250.30.118 X-Remote-Host: 60-250-30-118.hinet-ip.hinet.net X-SBRS: -1.7 X-MID: 25689482 X-Auth-ID: nick.wang@insyde.com X-EnvelopeFrom: nick.wang@insyde.com X-Received: from 60-250-30-118.hinet-ip.hinet.net (HELO [127.0.0.1]) ([60.250.30.118]) by hb3-IN05.hibox.biz with ESMTP/TLS/AES128-SHA; 06 May 2019 11:10:34 +0800 Message-ID: <5CCFA5AA.3040706@insyde.com> Date: Mon, 06 May 2019 11:10:34 +0800 From: Nick Wang User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: devel@edk2.groups.io CC: "@intel.com >> Jin", Eric , Supreeth.Venkatesh@arm.com, ruth.li@intel.com, leon.chen@insyde.com, "sunny.hsu@insyde.com >> sunny hsu" Subject: [edk2-devel][edk2-test][PATCH] EFI/Protocol: Fix to use VENDOR_DEVICE_PATH to create the Debug port device node for DevicePath related protocol tests. Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nick.wang@insyde.com Content-Type: multipart/alternative; boundary="------------000407090505030608060704" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1557153406; bh=g+8hxnvVL+CSQ2TwLf1TvtVs+OXpj3FcMCXE+Ga6eXA=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=aGWhNT0knNFStR6AXv1p++rEXxBgn6KCT8fiLD98P0g7LcfxTmyfvc22rnuSv5rJwlM K87o1pdWX6y17TFGQDVo7bHWuuoPGGvtSpYzNaLalhs+YRI6RZiZ6D4iGCnb5QrGDCW0e 0oZHehe0LmVdFc4e6tmuU1jxng4Im9geQYA= X-ZohoMail-DKIM: pass (identity @groups.io) --------------000407090505030608060704 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="flowed" Follow edk2 tree hash: 9343d0a1cd09544686b14dba5b428d7bc811f6b9 to use=20 VENDOR_DEVICE_PATH to create the Debug port device node. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nick Wang --- .../BlackBoxTest/DevicePathFromTextBBTestCoverage.c | 13 +++++++------ .../BlackBoxTest/DevicePathToTextBBTestMain.c | 5 +++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git=20 a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathFromText/BlackBoxTes= t/DevicePathFromTextBBTestCoverage.c=20 b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathFromText/BlackBoxTes= t/DevicePathFromTextBBTestCoverage.c index 96cd84fd..56128f2a 100644 ---=20 a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathFromText/BlackBoxTes= t/DevicePathFromTextBBTestCoverage.c +++=20 b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathFromText/BlackBoxTes= t/DevicePathFromTextBBTestCoverage.c @@ -2,6 +2,7 @@ Copyright 2006 - 2017 Unified EFI, Inc. Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved. + Copyright (c) 2019, Insyde Software Corp. All Rights Reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the=20 BSD License @@ -1114,13 +1115,13 @@ CreateDebugPortDeviceNode ( IN CHAR16 *TextDeviceNode ) { - VENDOR_DEFINED_MESSAGING_DEVICE_PATH *Vend; + VENDOR_DEVICE_PATH *Vend; - Vend =3D (VENDOR_DEFINED_MESSAGING_DEVICE_PATH *) CreateDeviceNode ( - DebugPortNodeType, - DebugPortNodeSubType, - sizeof(VENDOR_DEFINED_MESSAGING_DEVICE_PATH) - ); + Vend =3D (VENDOR_DEVICE_PATH *) CreateDeviceNode ( + DebugPortNodeType, + DebugPortNodeSubType, + sizeof(VENDOR_DEVICE_PATH) + ); Vend->Guid =3D gBlackBoxEfiDebugPortProtocolGuid; return (EFI_DEVICE_PATH_PROTOCOL *) Vend; diff --git=20 a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathToText/BlackBoxTest/= DevicePathToTextBBTestMain.c=20 b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathToText/BlackBoxTest/= DevicePathToTextBBTestMain.c index d0809776..2fe58337 100644 ---=20 a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathToText/BlackBoxTest/= DevicePathToTextBBTestMain.c +++=20 b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathToText/BlackBoxTest/= DevicePathToTextBBTestMain.c @@ -2,6 +2,7 @@ Copyright 2006 - 2017 Unified EFI, Inc. Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved. + Copyright (c) 2019, Insyde Software Corp. All Rights Reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the=20 BSD License @@ -1708,9 +1709,9 @@ BuildDebugPortDeviceNode ( IN CHAR16 *TextDeviceNode ) { - VENDOR_DEFINED_MESSAGING_DEVICE_PATH *Vend; + VENDOR_DEVICE_PATH *Vend; - Vend =3D (VENDOR_DEFINED_MESSAGING_DEVICE_PATH *) CreateDeviceNode (0x3,=20 0x0a, sizeof (VENDOR_DEFINED_MESSAGING_DEVICE_PATH)); + Vend =3D (VENDOR_DEVICE_PATH *) CreateDeviceNode (0x3, 0x0a, sizeof=20 (VENDOR_DEVICE_PATH)); Vend->Guid =3D gBlackBoxEfiDebugPortProtocolGuid; --=20 2.19.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#40046): https://edk2.groups.io/g/devel/message/40046 Mute This Topic: https://groups.io/mt/31520513/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --------------000407090505030608060704 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Follow edk2 tree hash: 9343d0a1cd09544686b14dba5b428d7bc811f6b9 to use VENDOR_DEVICE_PATH to create the Debug port device node.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Nick Wang
---
.../BlackBoxTest/DevicePathFromTextBBTestCoverage.c | 13 +++++++------
.../BlackBoxTest/DevicePathToTextBBTestMain.c | 5 +++--
2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathFromText/BlackBoxTest/DevicePathFromTextBBTestCoverage.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathFromText/BlackBoxTest/DevicePathFromTextBBTestCoverage.c
index 96cd84fd..56128f2a 100644
--- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathFromText/BlackBoxTest/DevicePathFromTextBBTestCoverage.c
+++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathFromText/BlackBoxTest/DevicePathFromTextBBTestCoverage.c
@@ -2,6 +2,7 @@

Copyright 2006 - 2017 Unified EFI, Inc.

Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.

+ Copyright (c) 2019, Insyde Software Corp. All Rights Reserved.


This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -1114,13 +1115,13 @@ CreateDebugPortDeviceNode (
IN CHAR16 *TextDeviceNode
)
{
- VENDOR_DEFINED_MESSAGING_DEVICE_PATH *Vend;
+ VENDOR_DEVICE_PATH *Vend;

- Vend = (VENDOR_DEFINED_MESSAGING_DEVICE_PATH *) CreateDeviceNode (
- DebugPortNodeType,
- DebugPortNodeSubType,
- sizeof(VENDOR_DEFINED_MESSAGING_DEVICE_PATH)
- );
+ Vend = (VENDOR_DEVICE_PATH *) CreateDeviceNode (
+ DebugPortNodeType,
+ DebugPortNodeSubType,
+ sizeof(VENDOR_DEVICE_PATH)
+ );
Vend->Guid = gBlackBoxEfiDebugPortProtocolGuid;

return (EFI_DEVICE_PATH_PROTOCOL *) Vend;
diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathToText/BlackBoxTest/DevicePathToTextBBTestMain.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathToText/BlackBoxTest/DevicePathToTextBBTestMain.c
index d0809776..2fe58337 100644
--- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathToText/BlackBoxTest/DevicePathToTextBBTestMain.c
+++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/DevicePathToText/BlackBoxTest/DevicePathToTextBBTestMain.c
@@ -2,6 +2,7 @@

Copyright 2006 - 2017 Unified EFI, Inc.

Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.

+ Copyright (c) 2019, Insyde Software Corp. All Rights Reserved.


This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -1708,9 +1709,9 @@ BuildDebugPortDeviceNode (
IN CHAR16 *TextDeviceNode
)
{
- VENDOR_DEFINED_MESSAGING_DEVICE_PATH *Vend;
+ VENDOR_DEVICE_PATH *Vend;

- Vend = (VENDOR_DEFINED_MESSAGING_DEVICE_PATH *) CreateDeviceNode (0x3, 0x0a, sizeof (VENDOR_DEFINED_MESSAGING_DEVICE_PATH));
+ Vend = (VENDOR_DEVICE_PATH *) CreateDeviceNode (0x3, 0x0a, sizeof (VENDOR_DEVICE_PATH));

Vend->Guid = gBlackBoxEfiDebugPortProtocolGuid;

--
2.19.1.windows.1

_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#40046) | | Mute This Topic | New Topic

Your Subscription | Contact Group Owner | Unsubscribe [importer@patchew.org]

_._,_._,_
--------------000407090505030608060704--