summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2017-06-08 10:16:40 +0800
committerStar Zeng <star.zeng@intel.com>2017-06-10 13:25:25 +0800
commit2447ae30ac5d9b32d8b6befd021f270561a2fb91 (patch)
treef989c5b34748e2378b30795942562f282c12c76b
parent9e0da2fa43765a539b4c4d0fe41a0c8e9d6e68b8 (diff)
downloadedk2-2447ae30ac5d9b32d8b6befd021f270561a2fb91.tar.gz
edk2-2447ae30ac5d9b32d8b6befd021f270561a2fb91.tar.bz2
edk2-2447ae30ac5d9b32d8b6befd021f270561a2fb91.zip
SecurityPkg TcgDxe: Simplify debug msg when "TPM not working properly"
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> (cherry picked from commit ec4910cd3336565fdb61dafdd9ec4ae7a6160ba3)
-rw-r--r--SecurityPkg/Tcg/TcgDxe/TcgDxe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c
index 5b7c5c3e16..4a90c5ccef 100644
--- a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c
+++ b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c
@@ -1406,9 +1406,7 @@ DriverEntry (
if (EFI_ERROR (Status)) {
DEBUG ((
EFI_D_ERROR,
- "Line %d in file " __FILE__ ":\n "
- "DriverEntry: TPM not working properly\n",
- __LINE__
+ "DriverEntry: TPM not working properly\n"
));
return Status;
}