diff options
author | Harsh Prateek Bora <harsh@linux.vnet.ibm.com> | 2012-07-20 18:52:12 +0530 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-08-14 10:40:39 +0100 |
commit | 8ae601e8fedbbc9b1a1514796bb608e942660bd9 (patch) | |
tree | 68a698dfc205af3be1ed2d749df1aa6092d6c4f2 /trace/simple.c | |
parent | 633decd71119a4293e5e53e6059026c517a8bef0 (diff) |
trace: rename TraceRecordHeader to TraceLogHeader
The TraceRecordHeader is really the header for the entire trace log
file. It's not per-record header so make this obvious by renaming it.
Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'trace/simple.c')
-rw-r--r-- | trace/simple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trace/simple.c b/trace/simple.c index b700ea317c..5d929399ca 100644 --- a/trace/simple.c +++ b/trace/simple.c @@ -70,7 +70,7 @@ typedef struct { uint64_t header_event_id; /* HEADER_EVENT_ID */ uint64_t header_magic; /* HEADER_MAGIC */ uint64_t header_version; /* HEADER_VERSION */ -} TraceRecordHeader; +} TraceLogHeader; static void read_from_buffer(unsigned int idx, void *dataptr, size_t size); @@ -295,7 +295,7 @@ void st_set_trace_file_enabled(bool enable) flush_trace_file(true); if (enable) { - static const TraceRecordHeader header = { + static const TraceLogHeader header = { .header_event_id = HEADER_EVENT_ID, .header_magic = HEADER_MAGIC, /* Older log readers will check for version at next location */ |