]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg TcgDxe: Simplify debug msg when "TPM not working properly"
authorStar Zeng <star.zeng@intel.com>
Thu, 8 Jun 2017 02:16:40 +0000 (10:16 +0800)
committerStar Zeng <star.zeng@intel.com>
Sat, 10 Jun 2017 05:19:59 +0000 (13:19 +0800)
Current code for case "TPM not working properly" uses the predefined
macro __FILE__ in debug format string, but uses predefined macro
__LINE__ as parameter, and it also uses multiple pairs of "" in debug
format string.

To be simple and clear, this patch is to update the code to just use
"DriverEntry: TPM not working properly\n" as the debug message.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Amy Chan <amy.chan@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
SecurityPkg/Tcg/TcgDxe/TcgDxe.c

index 5b7c5c3e165bcf7643c303caad04019003d2d5f9..4a90c5ccef1632edc5967fd9cce2469f975ffcc9 100644 (file)
@@ -1406,9 +1406,7 @@ DriverEntry (
   if (EFI_ERROR (Status)) {\r
     DEBUG ((\r
       EFI_D_ERROR,\r
-      "Line %d in file " __FILE__ ":\n    "\r
-      "DriverEntry: TPM not working properly\n",\r
-      __LINE__\r
+      "DriverEntry: TPM not working properly\n"\r
       ));\r
     return Status;\r
   }\r