From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from msmail.insydesw.com.tw (ms.insydesw.com [211.75.113.220]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B968B82131 for ; Wed, 8 Feb 2017 18:59:07 -0800 (PST) Received: from msmail.insydesw.com.tw ([fe80::74f7:f173:f4aa:9a05]) by msmail.insydesw.com.tw ([fe80::74f7:f173:f4aa:9a05%11]) with mapi id 14.01.0438.000; Thu, 9 Feb 2017 10:59:05 +0800 From: Tim Lewis To: Rebecca Cran , Andrew Fish CC: "edk2-devel@ml01.01.org" , "David A. Van Arnem" Thread-Topic: [edk2] Print from DXE_DRIVER Thread-Index: AQHSglg1i2tHUTfSjUy40Muq3617uKFfUEWAgAAk6gCAAIaNcA== Date: Thu, 9 Feb 2017 02:59:05 +0000 Message-ID: <7236196A5DF6C040855A6D96F556A53F42D2BE@msmail.insydesw.com.tw> References: <4a3de604-5e60-7ed2-e520-29ab6b551c33@cmlab.biz> <4066A9E2-CBB9-49B0-BEDC-4455A6CD57A8@bluestop.org> In-Reply-To: <4066A9E2-CBB9-49B0-BEDC-4455A6CD57A8@bluestop.org> Accept-Language: en-US, zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [96.230.108.98] MIME-Version: 1.0 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 02:59:08 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Also, on many systems, the output will be invisible, since boot screen outp= ut is a platform policy. In general, using DEBUG() is better, since it can = either be redirected to StdErr() or through the serial port. Tim -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Rebe= cca 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 > On Feb 8, 2017, at 5:43 PM, Andrew Fish wrote: >=20 > If you want to write directly to the UEFI Console you can try this. Plac= e it in the entry point of your driver in case you have some bug that is pr= eventing your from registering the Driver Binding Protocol.=20 >=20 > gST->ConOut->OutputString (gST->ConOut, L"Hello World\n\r"); Note that on some systems, at some times gST->ConOut may be NULL, so it mig= ht be worth checking before calling it (unless you know otherwise on your d= ev system). --=20 Rebecca _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel