From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mx.groups.io with SMTP id smtpd.web12.10146.1609739139460150705 for ; Sun, 03 Jan 2021 21:45:39 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eLY9mi/x; spf=pass (domain: gmail.com, ip: 209.85.221.42, mailfrom: aj.shirvani@gmail.com) Received: by mail-wr1-f42.google.com with SMTP id d13so30923730wrc.13 for ; Sun, 03 Jan 2021 21:45:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PEq+D2C0rqLZfK9aJ5jJ+1ppmgJr9H0+TpaWJJXYzIE=; b=eLY9mi/xQfo8RfVOk4YlyESTLRobxihBSBjzcBXMSUoYjK3Gg+eM0UEg9f4PnjS9Vq ojLnwPOsLB0iPrZPSUw9SQjNOAR6kTdgM2m+TFY6H2v5/7lRCmwPOp7ZUoGtBjt+hQGp DoQrx/B764IWJWdvFyktIf60FvzG7B+1d+qIsR5UScfR8Kr97GOCbWnT6deQcemwkYE4 8vfx3hVM9N430JnjoobZll63Xci7NNIDT269TL0ilJwaE5O4zUv9ZYL+27Bp7KEeA3SL 7eAn+EtbLYjSS+QnC/EHiADonRVHZoerH9xRL44LCaxKys0LpVLeOlXrL2DRimL0Sndr YM0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PEq+D2C0rqLZfK9aJ5jJ+1ppmgJr9H0+TpaWJJXYzIE=; b=OlZ3HqswGgfrX4lxYX1LrrzpZFVOzFQ4f0YYwMmebh8HItkzKdV/Cl3eU7qEnqIpSl emk1gg4sOii008UuP157zM6judRdgR3xAbxfPApeKljlWsDUuJZest4EOEHLXLL8MPcf VBzLp5TemOAp9UgsHIzdGeUItwN7vfAFlDA2WCwuEQ8M7jZj1LTarZg1MBBCxSa4HN4A UUbG+HSeXz3OlxcrpkZzMDleKKZQLKga92LBxYfVb/euSyc2hRJAUeStpc/pbDhTOJ2V e7bF4/AN3pnH6tlA3Bv41yqKjK+mVs6jRifuFjU0/iST5MsLJviaY8Dxymt6FSNLLe04 a4yw== X-Gm-Message-State: AOAM530AUaxfgj6wKrjLD7WSVdoYPu3tr141v4LtxbA1iNZZyj7Dbgod aCD40i8KPMImwS6WLjBBlSpewLuUCViOtLfFrXU= X-Google-Smtp-Source: ABdhPJy6+dfi9vXdldduzA2FdJSw3wgpND8s9PY01yFeP0MnYdfBGOIo6qePLf2xylHoVJO9I8c/gBVFJSG5kXwido8= X-Received: by 2002:a5d:6888:: with SMTP id h8mr79155113wru.268.1609739137822; Sun, 03 Jan 2021 21:45:37 -0800 (PST) MIME-Version: 1.0 References: <000901d6e236$79e09100$6da1b300$@byosoft.com.cn> In-Reply-To: <000901d6e236$79e09100$6da1b300$@byosoft.com.cn> From: "Ali Shirvani" Date: Mon, 4 Jan 2021 09:15:26 +0330 Message-ID: Subject: Re: [edk2-devel] Enabling DEBUG on other modules To: gaoliming Cc: devel@edk2.groups.io Content-Type: multipart/alternative; boundary="0000000000007db2a805b80c9920" --0000000000007db2a805b80c9920 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for your response. I've added those flags to MyPkg.dsc file, but when I got the following assertion and my program stopped working. ASSERT [Test] /home/ali/projects/efi/edk2/MdePkg/Library/BaseRngLib/BaseRng.c(49): (RegEcx & 0x40000000) =3D=3D 0x40000000 Thanks, Ali On Mon, Jan 4, 2021 at 4:41 AM gaoliming wrote: > You can set PCD gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask to 0x2F in > [PcdsFixedAtBuild] section of Platform.dsc file to enable DEBUG macro. > > > > And, set PCD gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel to > 0x80000040 to enable ERROR and INFO message. > > > > Thanks > > Liming > > *=E5=8F=91=E4=BB=B6=E4=BA=BA:* bounce+27952+69513+4905953+8761045@groups= .io < > bounce+27952+69513+4905953+8761045@groups.io> *=E4=BB=A3=E8=A1=A8 *Ali S= hirvani > *=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4:* 2021=E5=B9=B41=E6=9C=882=E6=97= =A5 21:34 > *=E6=94=B6=E4=BB=B6=E4=BA=BA:* devel@edk2.groups.io > *=E4=B8=BB=E9=A2=98:* [edk2-devel] Enabling DEBUG on other modules > > > > Hi all, > > and happy new year. > > > > I've enabled the DEBUG macro in my package. I'm using USB_IO_PROTOCOL an= d > I encountered some problems. I want to enable DEBUG macro on all modules > that I use in my program. > > > > Would you please guide me how I can enable DEBUG macro globally, so I ca= n > find the place where problems occur? > > > > Regards, > > Ali > >=20 > --0000000000007db2a805b80c9920 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for your response. I've added those flags = to MyPkg.dsc file, but when I got the following assertion and my program st= opped working.

ASSERT [Test] /home/ali/project= s/efi/edk2/MdePkg/Library/BaseRngLib/BaseRng.c(49): (RegEcx & 0x4000000= 0) =3D=3D 0x40000000

Thanks,
Ali

On Mon, Jan 4, 2021 at 4:41 AM gaoliming <gaoliming@byosoft.com.cn> wrote:

You can set PCD gEfiMdePkgTokenSpaceGuid.PcdD= ebugPropertyMask to 0x2F in [PcdsFixedAtBuild] section of Platform.dsc file= to enable DEBUG macro.

=C2=A0

And, set PCD gEf= iMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel to 0x80000040 to enable ERROR= and INFO message.

<= /u>=C2=A0

Thanks<= /span>

Liming

=E5=8F=91=E4=BB=B6=E4=BA=BA: bounce+27952+69513+4905953+87610= 45@groups.io <bounce+27952+69513+4905953+8761045@grou= ps.io> =E4=BB=A3=E8=A1=A8 Ali Shirvani
=E5=8F=91=E9=80=81= = =E6=97=B6=E9=97=B4: 2021=E5=B9=B41=E6=9C=882=E6=97=A5 21:34
=E6=94=B6=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io
=E4=B8= =BB=E9=A2=98: [edk2-d= evel] Enabling DEBUG on other modules

=

=C2=A0

Hi all,<= u>

and= happy new year.

= =C2=A0

I've enabled the DEBUG macro in my pack= age. I'm using USB_IO_PROTOCOL and I encountered some problems. I want = to enable DEBUG macro on all modules that I use in my program.

= =C2=A0

Would you please guide me how I can enable DEBUG macro globally, so I = can find the place where problems occur?

=C2=A0

Regards,<= /u>

Ali=

--0000000000007db2a805b80c9920--