diff options
author | CamVan Nguyen <ctnguyen@us.ibm.com> | 2011-08-08 20:12:06 -0500 |
---|---|---|
committer | CAMVAN T. NGUYEN <ctnguyen@us.ibm.com> | 2011-08-10 22:01:42 -0500 |
commit | 068d68fdc716da1ad4443f66068b7494525e681f (patch) | |
tree | 845ca3e7b9535562c88ee3e097f7bc4c4ee99981 /src/include | |
parent | 56ff95dceb5e98fdd20382866d45775fde49584b (diff) | |
download | talos-hostboot-068d68fdc716da1ad4443f66068b7494525e681f.tar.gz talos-hostboot-068d68fdc716da1ad4443f66068b7494525e681f.zip |
Add %s string formatting support to trace
Change-Id: I14ea6717dfd8e98895345e86e32e82c637c26289
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/234
Tested-by: Jenkins Server
Reviewed-by: CAMVAN T. NGUYEN <ctnguyen@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/usr/trace/trace.H | 3 | ||||
-rw-r--r-- | src/include/util/align.H | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/include/usr/trace/trace.H b/src/include/usr/trace/trace.H index e4ea8922c..f30f2c0a3 100644 --- a/src/include/usr/trace/trace.H +++ b/src/include/usr/trace/trace.H @@ -22,6 +22,7 @@ /******************************************************************************/ const uint32_t TRACE_BUF_VERSION = 0x01; // Trace buffer version +const uint32_t TRACE_COMP_TRACE = 0x434F; // Component Field Trace - "CO" const uint32_t TRACE_FIELDTRACE = 0x4654; // Field Trace - "FT" const uint32_t TRACE_FIELDBIN = 0x4644; // Binary Field Trace - "FD" @@ -265,8 +266,6 @@ private: * * @param [in] i_comp Component name to retrieve trace descriptor for. * - * TODO - Not Supported Yet - * * @return Valid trace descriptor on success, NULL on failure. */ trace_desc_t * getTd(const char *i_comp); diff --git a/src/include/util/align.H b/src/include/util/align.H new file mode 100644 index 000000000..3edbff09a --- /dev/null +++ b/src/include/util/align.H @@ -0,0 +1,6 @@ +#ifndef __UTIL_ALIGN_H +#define __UTIL_ALIGN_H + +#define ALIGN_4(u) ((u + 0x3ull) & ~0x3ull) + +#endif |