diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2011-04-01 10:24:41 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2011-04-01 10:24:41 -0500 |
commit | 8c47aca4257c309e8de56470707eebbcdd875f7a (patch) | |
tree | b683133508976f8378801227ffc9d4e2494c9e3e /src | |
parent | bc6668cd04209d34c04b84139fdfb353166e3335 (diff) | |
download | talos-hostboot-8c47aca4257c309e8de56470707eebbcdd875f7a.tar.gz talos-hostboot-8c47aca4257c309e8de56470707eebbcdd875f7a.zip |
Save the trace component string properly.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/trace_adal.h | 4 | ||||
-rw-r--r-- | src/usr/trace/trace.C | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/include/trace_adal.h b/src/include/trace_adal.h index 481393bd2..fb8e1501e 100644 --- a/src/include/trace_adal.h +++ b/src/include/trace_adal.h @@ -132,8 +132,8 @@ typedef struct trace_buf_list { } trace_buf_list_t; -typedef int trace_desc_t; //Type definition for users trace descriptor data type -typedef int tracDesc_t; //Type definition for older trace descriptor type +typedef uint64_t trace_desc_t; //Type definition for users trace descriptor data type +typedef uint64_t tracDesc_t; //Type definition for older trace descriptor type typedef unsigned long trace_strings_t; /* type for trace strings */ diff --git a/src/usr/trace/trace.C b/src/usr/trace/trace.C index aa0fa90c6..31d74c986 100644 --- a/src/usr/trace/trace.C +++ b/src/usr/trace/trace.C @@ -9,7 +9,7 @@ int32_t trace_adal_init_buffer(trace_desc_t * td, const char* comp, const size_t size ) { // For now, just store the component name. - td = (trace_desc_t*) comp; + *td = (trace_desc_t) comp; return 0; } |