aboutsummaryrefslogtreecommitdiff
path: root/libstb
diff options
context:
space:
mode:
authorClaudio Carvalho <cclaudio@linux.vnet.ibm.com>2016-09-28 05:01:24 -0300
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-10 15:29:35 +1100
commit17413385499932594e3d4a3fe21726bf96944b8d (patch)
tree219cbf8696aeaaba1052894cde13d16da892765a /libstb
parent282fff649acd0c1a7462c152506814f74341e057 (diff)
downloadskiboot-17413385499932594e3d4a3fe21726bf96944b8d.zip
skiboot-17413385499932594e3d4a3fe21726bf96944b8d.tar.gz
skiboot-17413385499932594e3d4a3fe21726bf96944b8d.tar.bz2
libstb/tss/tpmLogMgr: disable TpmLogMgr_dumpLog()
This disables the TpmLogMgr_dumpLog() function for skiboot. It breaks the compilation if TRACUCOMP and TRACUBIN macros are not defined. Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libstb')
-rw-r--r--libstb/tss/tpmLogMgr.C6
-rw-r--r--libstb/tss/tpmLogMgr.H3
2 files changed, 4 insertions, 5 deletions
diff --git a/libstb/tss/tpmLogMgr.C b/libstb/tss/tpmLogMgr.C
index 89ab41a..95f4810 100644
--- a/libstb/tss/tpmLogMgr.C
+++ b/libstb/tss/tpmLogMgr.C
@@ -298,6 +298,7 @@ namespace TRUSTEDBOOT
return val->logSize;
}
+#ifdef __HOSTBOOT_MODULE
void TpmLogMgr_dumpLog(TpmLogMgr* val)
{
@@ -305,7 +306,6 @@ namespace TRUSTEDBOOT
TRACUCOMP(g_trac_trustedboot, "tpmDumpLog Size : %d",
(int)val->logSize);
-#ifdef __HOSTBOOT_MODULE
// Debug display of raw data
if (NULL == val->eventLogInMem)
{
@@ -314,13 +314,11 @@ namespace TRUSTEDBOOT
}
else
{
-#endif
TRACUBIN(g_trac_trustedboot, "tpmDumpLog From Memory",
val->eventLogInMem, val->logSize);
-#ifdef __HOSTBOOT_MODULE
}
-#endif
}
+#endif
uint32_t TpmLogMgr_calcLogSize(TpmLogMgr* val)
{
diff --git a/libstb/tss/tpmLogMgr.H b/libstb/tss/tpmLogMgr.H
index 5a44b9d..26b8604 100644
--- a/libstb/tss/tpmLogMgr.H
+++ b/libstb/tss/tpmLogMgr.H
@@ -222,12 +222,13 @@ namespace TRUSTEDBOOT
const uint8_t* i_digest_2,
size_t i_digestSize_2,
const char* i_logMsg);
-
+#ifdef __HOSTBOOT_MODULE
/**
* @brief Dump contents of log to a trace
* @param[in] val TpmLogMgr structure
*/
void TpmLogMgr_dumpLog(TpmLogMgr* val);
+#endif
/**
* @brief Return a pointer to the start of the log