From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-x236.google.com (mail-it0-x236.google.com [IPv6:2607:f8b0:4001:c0b::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id F07618204A for ; Tue, 14 Feb 2017 09:55:35 -0800 (PST) Received: by mail-it0-x236.google.com with SMTP id c7so43073677itd.1 for ; Tue, 14 Feb 2017 09:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ZBsOTHAh2iNjX19/Po3Y9Ktudkdm40iyuonSFPsUxhY=; b=JlcFwu3z1DOAfc2+vPXKDJs9qaZE4Z/7fc+K9RVC6+ONSnzwdSjpmF4DLuMhr3IbvN Vyz6x8uvnrYkkMqBusYsO9885Zlda9iyNazB9bCKDfoKecGP5B4kjXVMMyxLlrGtM/ZG eyp1A7++l6dIQqlwv04FEczGHa/QqnSN88+iqWbj779RgKB5F7WQz3ole51BUqSLN0Ik jG2F6VTGVzgP6pP8WtwgrlmmaBtkIE4lbjeiKd1/NL5HVD5+ScW9O6+lCKiWYFvp5wLB xcGVp70sGAZFsK3rElxADitHNKWvVOvjISINBl8brLzTKvlnIDp7q+sKecXtHFYjH93+ vRPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZBsOTHAh2iNjX19/Po3Y9Ktudkdm40iyuonSFPsUxhY=; b=ml6+oXL/BEGtfqhixNFuEbsw4Z9uH0DQPiU3L7VRBOOap0/x35KeK4PzATsWjARLEn E1JsgWQkIpjXEQmigl3IlXN+8AVy2D6pfoDemwxIsN9C9sQw1UqJ/Q/JHeYjwbfrlyAk 4GNOFIfTJdQ9AyS7tPh8plI2uoIL04KCOLTjH2+Bnf5o51e0NAwgo8dEMwZcupPH+Oml g+W8IK9wtt7+n7xa8lc+EGARaNyOSkfIYP/oR+rJkhu/4nPN8em9hu+9NV7187JB/K3I v7sxTPOiZ8RVr+N1ocvmaPUSgFHLyT8g3G70LQrPuTcCS7Om6oXav2WrFzi2kMb7/kkE YwQQ== X-Gm-Message-State: AMke39nuj7nthJkAUQdkhFdR0T/+CYpTUNVkzJNzyc9qZ8RJ9yimkAvN+GRKYGVb04EE4xbuBMc1FU9PAdTsGg== X-Received: by 10.36.135.74 with SMTP id f71mr4765339ite.101.1487094934830; Tue, 14 Feb 2017 09:55:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.241.204 with HTTP; Tue, 14 Feb 2017 09:55:34 -0800 (PST) From: Nikolay Bodunov Date: Tue, 14 Feb 2017 20:55:34 +0300 Message-ID: To: edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: =?UTF-8?B?REVCVUcoKSBtYWNyb3MgaW4gRFhFIGRyaXZlcjogY2Fu4oCZdCBtYWtlIGl0IHdvcmsgaW4gUUVNVQ==?= 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: Tue, 14 Feb 2017 17:55:36 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello I compiled DXE Driver, in DEBUG_GCC49 mode, but I can=E2=80=99t print any d= ebug message. DEBUG((-1, =E2=80=9CPrint test=E2=80=9D)) does nothing. Exactly as DebugPrint(EFI_D_ERROR, =E2=80=9CPrint Test); However, I see =E2=80=9CPrint Test=E2=80=9D string in my *.efi binary. I use QEMU + OMVF (OVMF was also recompliled in DEBUG_GCC49 mode, to be sure). Serial port output is redirected to a file: qemu-system-x86_64 -L . --bios /=E2=80=A6/FV/OVMF.fd -hda hdd.img -serial file:./serial_file All I see in output file is EFI shell output messages, include one that my driver was succesfully loaded. But no messages from DEBUG(). My conditions: MODULE_TYPE =3D DXE_DRIVER Debug Print Library: DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf (BaseDebugLibNull.inf is commented, of course) DebugPrintEnabled() returns TRUE I also tried to set some key options manually in MdeModulePkg.dsc afterwards, but result didn=E2=80=99t change: [Components] MdeModulePkg/CrScreenshotDxe/CrScreenshotDxe.inf { gEfiMdePkgTokenSpaceGuid.gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0= x07 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000042 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf GCC:*_*_*_CC_FLAGS =3D -UMDEPKG_NDEBUG } Code (I used it as a base): https://github.com/LongSoft/CrScreenshotDxe Where I got wrong and what else could I try to make it work? --=20 With best regards, Nikolay Bodunov