summaryrefslogtreecommitdiff
path: root/tests/tpm_lite/startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tpm_lite/startup.c')
-rw-r--r--tests/tpm_lite/startup.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/tpm_lite/startup.c b/tests/tpm_lite/startup.c
index 532ba8dd..3d901f39 100644
--- a/tests/tpm_lite/startup.c
+++ b/tests/tpm_lite/startup.c
@@ -11,22 +11,22 @@
#include "tlcl.h"
int main(int argc, char** argv) {
- uint32_t result;
- TlclLibInit();
- result = TlclStartup();
- if (result != 0) {
- printf("tpm startup failed with 0x%x\n", result);
- }
- result = TlclGetFlags(NULL, NULL, NULL);
- if (result != 0) {
- printf("tpm getflags failed with 0x%x\n", result);
- }
- printf("executing SelfTestFull\n");
- TlclSelfTestFull();
- result = TlclGetFlags(NULL, NULL, NULL);
- if (result != 0) {
- printf("tpm getflags failed with 0x%x\n", result);
- }
- printf("TEST SUCCEEDED\n");
- return 0;
+ uint32_t result;
+ TlclLibInit();
+ result = TlclStartup();
+ if (result != 0) {
+ printf("tpm startup failed with 0x%x\n", result);
+ }
+ result = TlclGetFlags(NULL, NULL, NULL);
+ if (result != 0) {
+ printf("tpm getflags failed with 0x%x\n", result);
+ }
+ printf("executing SelfTestFull\n");
+ TlclSelfTestFull();
+ result = TlclGetFlags(NULL, NULL, NULL);
+ if (result != 0) {
+ printf("tpm getflags failed with 0x%x\n", result);
+ }
+ printf("TEST SUCCEEDED\n");
+ return 0;
}