From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from server202.webhostingpad.com (server202mail.webhostingpad.com [50.31.162.9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DB45281F29 for ; Thu, 9 Feb 2017 12:38:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmlab.biz; s=default; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Cc: References:To:Subject:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=xOmDr7Kx0K1clbz2b4+92ICo4OG59+ZrzzVUu5WIW/E=; b=Dt27K9RFvRtG9k3Ph5FCmzwDhx Hi6IwmN2kGkIfgqAIn67rxtcFnGEYUk0HPYySd4dBAuVWplRYHu7Zhni5cJFR19KvRBaDA6460dzK r8BtvKThuSBefb5kHkF7F2IYptOgX9wl/26B4z6QdbjhdnNolbYvGgZlsmWLqdRRJlns=; Received: from [71.216.152.198] (port=55130 helo=[192.168.50.197]) by server202.webhostingpad.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cbvU7-004FDm-Ti; Thu, 09 Feb 2017 14:38:32 -0600 To: Tim Lewis , Rebecca Cran , Andrew Fish References: <4a3de604-5e60-7ed2-e520-29ab6b551c33@cmlab.biz> <4066A9E2-CBB9-49B0-BEDC-4455A6CD57A8@bluestop.org> <7236196A5DF6C040855A6D96F556A53F42D2BE@msmail.insydesw.com.tw> Cc: "edk2-devel@ml01.01.org" From: "David A. Van Arnem" Message-ID: <3edd61e3-1073-afc2-6fdc-96a07de64207@cmlab.biz> Date: Thu, 9 Feb 2017 13:38:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <7236196A5DF6C040855A6D96F556A53F42D2BE@msmail.insydesw.com.tw> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server202.webhostingpad.com X-AntiAbuse: Original Domain - ml01.01.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - cmlab.biz X-Get-Message-Sender-Via: server202.webhostingpad.com: authenticated_id: dvanarnem@cmlab.biz X-Authenticated-Sender: server202.webhostingpad.com: dvanarnem@cmlab.biz X-Source: X-Source-Args: X-Source-Dir: X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: Print from DXE_DRIVER X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2017 20:38:33 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 02/08/2017 07:59 PM, Tim Lewis wrote: > Also, on many systems, the output will be invisible, since boot screen = output is a platform policy. In general, using DEBUG() is better, since i= t can either be redirected to StdErr() or through the serial port. >=20 > Tim Thanks all, I do have some experience with using DEBUG() so I will take that approach (and as Andrew said, that way the DEBUG() output can be conditionally filtered based on priority so once I verify through that and shell commands I can turn them off easily). David >=20 > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of = Rebecca Cran > Sent: Wednesday, February 08, 2017 6:56 PM > To: Andrew Fish > Cc: edk2-devel@ml01.01.org; David A. Van Arnem > Subject: Re: [edk2] Print from DXE_DRIVER >=20 >=20 >> On Feb 8, 2017, at 5:43 PM, Andrew Fish wrote: >> >> If you want to write directly to the UEFI Console you can try this. P= lace it in the entry point of your driver in case you have some bug that = is preventing your from registering the Driver Binding Protocol.=20 >> >> gST->ConOut->OutputString (gST->ConOut, L"Hello World\n\r"); >=20 > Note that on some systems, at some times gST->ConOut may be NULL, so it= might be worth checking before calling it (unless you know otherwise on = your dev system). >=20 --=20 Regards, David Van Arnem Development Engineer IV Computer Measurement Laboratory, LLC