Skip to content

Commit

Permalink
SecurityPkg TcgDxe: Simplify debug msg when "TPM not working properly"
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Amy Chan <[email protected]>
Cc: Chasel Chiu <[email protected]>
Cc: Chao Zhang <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>
Reviewed-by: Chasel Chiu <[email protected]>
Reviewed-by: Chao Zhang <[email protected]>
(cherry picked from commit ec4910c)
  • Loading branch information
lzeng14 committed Jun 10, 2017
1 parent 9e0da2f commit 2447ae3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SecurityPkg/Tcg/TcgDxe/TcgDxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2447ae3

Please sign in to comment.