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 831A782095 for ; Wed, 8 Feb 2017 14:10:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmlab.biz; s=default; h=Content-Type:MIME-Version:Date:Message-ID:Subject:From:To: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2H3a1xVRRDTt5eu5INU+HEKK/v97AbQm/PZnSyEgQA8=; b=NRcalHOTTePttdaP0Qe9e6mSkN MuZZFhO6P/6esrP1YRlpBhEnvduoMGlczjqXJpXdfDZHKhxNujEsLrroKHKdWEFsuhRvlPBtAdQMv k+cvYzZe2pUOJPonanmJUiI9jfLesruIwLjPco585jO/Q0p7rTBl+maeUvEMdBKS8b8g=; Received: from [71.216.152.198] (port=57950 helo=[192.168.50.197]) by server202.webhostingpad.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cbaRo-0029lW-L0 for edk2-devel@ml01.01.org; Wed, 08 Feb 2017 16:10:44 -0600 To: "edk2-devel@ml01.01.org" From: "David A. Van Arnem" Message-ID: <4a3de604-5e60-7ed2-e520-29ab6b551c33@cmlab.biz> Date: Wed, 8 Feb 2017 15:10:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 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: 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: Wed, 08 Feb 2017 22:10:45 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I am working on a DXE_DRIVER for a custom device. I like to use Print() statements to trace code execution during development. Thus I have put a print statement in each of my Supported(), Start(), and Stop() functions for the driver binding protocol. Currently I am building the driver as part of the UefiCpuPkg, with no changes to the current UefiCpuPkg.dsc except for adding my driver under [Components]. I have also added the PrintLib and UefiLib to the [LibraryClasses] section in my driver's INF file, and included the necessary headers. 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. The documentation for the shell says load should test both the Supported() and Start() functions, so I would expect to see the 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? If not, would changing it to a UEFI_DRIVER help? Any other recommendations? If there is an example in edk2 that does this that you could point me to, that would be sufficient as well. Thanks! --=20 Regards, David Van Arnem Development Engineer IV Computer Measurement Laboratory, LLC