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 E2AF181F35 for ; Wed, 8 Feb 2017 16:49:53 -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=SbEJU3BjW3aTLVfdKZIqC5+2V9Sqy48yrzwgXmOkSHs=; b=BU3Tsk5mBRV6jGs1DfDbE52F5k 1jAmhFzMJmueYrUg6fqMA//IqlAGBpOq+kDfpsCK4/P3q1/1WFgCphcLqOG0KHbLG/wczQ2109LxZ HUJbwCEGdy9rJvTZmWJHT6KRS0pjcXIYoQXGg4+3J4H+TJOfHY89xQ6AzbGIEYCdlAUw=; Received: from [71.216.152.198] (port=60140 helo=[192.168.50.197]) by server202.webhostingpad.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cbcvp-003ZrR-6G; Wed, 08 Feb 2017 18:49:53 -0600 To: Andrew Fish References: <4a3de604-5e60-7ed2-e520-29ab6b551c33@cmlab.biz> Cc: "edk2-devel@ml01.01.org" From: "David A. Van Arnem" Message-ID: <18d9b9ba-f95d-1445-0842-9915c72be92a@cmlab.biz> Date: Wed, 8 Feb 2017 17:49:52 -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: 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 00:49:54 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 02/08/2017 05:43 PM, Andrew Fish wrote: >=20 >> On Feb 8, 2017, at 2:10 PM, David A. Van Arnem w= rote: >> >> When I load the driver from the shell (load .efi), I get a= >> message indicating it loaded successfully, but no output from the >> Print() messages. =20 >=20 > You should be able to use shell commands to see if you driver is connec= ted.=20 dh output does show my .efi at the end which I think indicates it is connected. >=20 >> The documentation for the shell says load should test >> both the Supported() and Start() functions, so I would expect to see t= he >> output, but I am not sure I am using the correct library instances to >> accomplish this. Is it possible to use Print() from a DXE_DRIVER, and= >> which library instance should I use in the UefiCpuPkg.dsc file? >=20 > Print() is part of the UefiLib. The PrintLib vends sprintf kinds of thi= ngs.=20 >=20 >> If not, >> would changing it to a UEFI_DRIVER help? Any other recommendations? >> >=20 > If you are publishing driver binding protocol you should be UEFI_DRIVER= , if possible.=20 >=20 >> If there is an example in edk2 that does this that you could point me >> to, that would be sufficient as well. Thanks! >> >=20 > If you want to write directly to the UEFI Console you can try this. Pl= ace it in the entry point of your driver in case you have some bug that i= s preventing your from registering the Driver Binding Protocol.=20 >=20 > gST->ConOut->OutputString (gST->ConOut, L"Hello World\n\r"); >=20 > Make sure you use L"" vs "" as Print takes a CHAR16 and %s also defaul= t to CHAR16 (not ASCII) I will try that, thank you! Regards, David >=20 >=20 >=20 > Thanks, >=20 > Andrew Fish >=20 >=20 >> --=20 >> Regards, >> David Van Arnem >> Development Engineer IV >> Computer Measurement Laboratory, LLC >> >> _______________________________________________ >> edk2-devel mailing list >> edk2-devel@lists.01.org >> https://lists.01.org/mailman/listinfo/edk2-devel >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel >=20 --=20 Regards, David Van Arnem Development Engineer IV Computer Measurement Laboratory, LLC