123456789101112131415161718192021222324252627282930 |
- #ifndef TPM2_TOOL_OUTPUT_H
- #define TPM2_TOOL_OUTPUT_H
- #include <stdio.h>
- extern bool output_enabled;
- #define tpm2_tool_output_disable() (output_enabled = false)
- #define tpm2_tool_output(fmt, ...) \
- do { \
- if (output_enabled) { \
- printf(fmt, ##__VA_ARGS__); \
- } \
- } while (0)
- #endif
|