From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by mx.groups.io with SMTP id smtpd.web10.4305.1619816878466210976 for ; Fri, 30 Apr 2021 14:07:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V90vpWdT; spf=pass (domain: gmail.com, ip: 209.85.222.180, mailfrom: getnatejigu@gmail.com) Received: by mail-qk1-f180.google.com with SMTP id a2so2370581qkh.11 for ; Fri, 30 Apr 2021 14:07:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HxC0WW0S9Zz4LaxR+F6gy4qUTmoj3J0J8zfMy/2kWw4=; b=V90vpWdT79Wi3A9a+1DwWYo+3IQkGiZLPXqfWYT9T0joc9NRHpld9IPnP8jQnjVPUo uRTIpzyRKlj4I9CGmC17U1YXn2BmztHearTlHkDsBdovkswz2BU3zn1DoR1IkjVmC2Y+ Ew8CHTiACZrTrEtD6Y/1dkbg5ZMAzHeUHA0ONMxTPvAi9FjstypSd0GhHI6bP1FY1jlJ JBAXY3FHNGiqrA/s03JezKmwgiz7xE3OhfW86AOT7p4GzQ63ObusAhIJGibICxCnFC/j +ylWBYy0sR8sv24lV8ELpsIWKlNDj/ETgSZq3kOI/03KhGNer8JKrfV+jwBjHfWQ8oRr 814w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HxC0WW0S9Zz4LaxR+F6gy4qUTmoj3J0J8zfMy/2kWw4=; b=S+n35vHOu7s+Mfwjc4cWfFqtHj36Rf7iplNyJ8fO2+x3RIsXYCaGBMOc3EA5zP8Eq1 LQhZY0qfJrYzKYaTESb1bPgRSwA6xBUdJ2KF94UAhIRPmdAbUqDxxcR5IkNu1H2L9Rfh hgRF8Bz/D15g47/PVWUHvL8+6FgFvp4ecjq2/ygcTDRXBZFboHVVxOhVFO15LQ3x9q5K DX26CQgaQ6JL4RA85nw8prvuVUmwAofK6YlfnOYMYyE5EMnNb16pzwMe29vCTSyLsoq0 g+SLrbyYq5aIsv8T0Ls3qfqns+JjvYs933ab78jRXoh65c9QwP2doiEtleYIfdGKlXa8 N9oQ== X-Gm-Message-State: AOAM532GlIAfXMxcfxSUuX9EcVxXwn9hFrZXkic6gMdbRJnABv5WOOeA 8vcJpibm8DeQYcvnl9XZMedQ1oqEypNyI+wB X-Google-Smtp-Source: ABdhPJwPKMLWEDtrPyICX+oYnaNTUOvv3+MrwBNYnGw1aZkVGJH4FPdpU+Oa/pLlt+FfPNYtrolIeg== X-Received: by 2002:a37:b5c5:: with SMTP id e188mr7527133qkf.144.1619816877425; Fri, 30 Apr 2021 14:07:57 -0700 (PDT) Return-Path: Received: from localhost.localdomain (ip72-205-56-117.dc.dc.cox.net. [72.205.56.117]) by smtp.gmail.com with ESMTPSA id w4sm3135233qti.6.2021.04.30.14.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 14:07:57 -0700 (PDT) From: "Getnat Ejigu" To: devel@edk2.groups.io Cc: Michael D Kinney , Sean Brogan , Bret Barkelew Subject: [PATCH v1 1/1] UnitTestFrameworkPkg: Sample unit test hangs when running in OVMF/QEMU Date: Fri, 30 Apr 2021 17:07:49 -0400 Message-Id: <20210430210749.1112414-2-getnatejigu@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210430210749.1112414-1-getnatejigu@gmail.com> References: <20210430210749.1112414-1-getnatejigu@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sample unit tests in UnitTestFrameworkPkg hangs when running in OVMF/QEMU environment. Build target is X64/GCC5. Fixing this issue by adding EFIAPI to ReportPrint() function that use VA_ARGS. Signed-off-by: Getnat Ejigu Cc: Michael D Kinney Cc: Sean Brogan Cc: Bret Barkelew --- UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportL= ib.c | 1 + UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportL= ibConOut.c | 1 + UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportL= ibDebugLib.c | 1 + 3 files changed, 3 insertions(+) diff --git a/UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestR= esultReportLib.c b/UnitTestFrameworkPkg/Library/UnitTestResultReportLib/Uni= tTestResultReportLib.c index 66c9db457d80..7f7443a23391 100644 --- a/UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultRe= portLib.c +++ b/UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultRe= portLib.c @@ -11,6 +11,7 @@ #include =0D =0D VOID=0D +EFIAPI=0D ReportPrint (=0D IN CONST CHAR8 *Format,=0D ...=0D diff --git a/UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestR= esultReportLibConOut.c b/UnitTestFrameworkPkg/Library/UnitTestResultReportL= ib/UnitTestResultReportLibConOut.c index cfb0c5972bd1..db5402d6a210 100644 --- a/UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultRe= portLibConOut.c +++ b/UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultRe= portLibConOut.c @@ -12,6 +12,7 @@ #include =0D =0D VOID=0D +EFIAPI=0D ReportPrint (=0D IN CONST CHAR8 *Format,=0D ...=0D diff --git a/UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestR= esultReportLibDebugLib.c b/UnitTestFrameworkPkg/Library/UnitTestResultRepor= tLib/UnitTestResultReportLibDebugLib.c index 1402d0ef83e2..1d62c6a37117 100644 --- a/UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultRe= portLibDebugLib.c +++ b/UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultRe= portLibDebugLib.c @@ -11,6 +11,7 @@ #include =0D =0D VOID=0D +EFIAPI=0D ReportPrint (=0D IN CONST CHAR8 *Format,=0D ...=0D --=20 2.25.1