Add a command to enable the physical presence command.
Change-Id: Id8b6ac3c75d1ee34237cde8adde55cea33b25889
Review URL: http://codereview.chromium.org/3163045
diff --git a/utility/tpmc.c b/utility/tpmc.c
index 0213b4b..2c23aa6 100644
--- a/utility/tpmc.c
+++ b/utility/tpmc.c
@@ -257,6 +257,8 @@
TlclContinueSelfTest },
{ "assertphysicalpresence", "ppon", "assert Physical Presence",
TlclAssertPhysicalPresence },
+ { "physicalpresencecmdenable", "ppcmd", "turn on software PP",
+ TlclPhysicalPresenceCMDEnable },
{ "enable", "ena", "enable the TPM (needs PP)", TlclSetEnable },
{ "disable", "dis", "disable the TPM (needs PP)", TlclClearEnable },
{ "activate", "act", "activate the TPM (needs PP, maybe reboot)",
@@ -298,9 +300,9 @@
args = argv;
if (strcmp(cmd, "help") == 0) {
- printf("%23s %7s %s\n\n", "command", "abbr.", "description");
+ printf("%26s %7s %s\n\n", "command", "abbr.", "description");
for (c = command_table; c < command_table + n_commands; c++) {
- printf("%23s %7s %s\n", c->name, c->abbr, c->description);
+ printf("%26s %7s %s\n", c->name, c->abbr, c->description);
}
return 0;
}