diff options
author | Yi Jin <jinyithu@google.com> | 2018-01-24 21:48:36 -0800 |
---|---|---|
committer | Yi Jin <jinyithu@google.com> | 2018-02-13 18:05:32 -0800 |
commit | 51d4c54eba8dd613dd0550c6633a747b53e0ce0a (patch) | |
tree | daaac252c97315bb5870eb618b2aa84d1af62ea9 /cmds/incident_helper/src/parsers/KernelWakesParser.cpp | |
parent | 85a6db68f1860bbaacc1cc21e29c4f61aabe0abb (diff) |
Make the platform proto naming consistent, Part 1
Change proto names in incident_helper
Bug: 72474563
Test: atest incident_helper_test
Change-Id: Ia416ef9726a19d247e62d7de1028874408ec53f1
Diffstat (limited to 'cmds/incident_helper/src/parsers/KernelWakesParser.cpp')
-rw-r--r-- | cmds/incident_helper/src/parsers/KernelWakesParser.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmds/incident_helper/src/parsers/KernelWakesParser.cpp b/cmds/incident_helper/src/parsers/KernelWakesParser.cpp index cae51abbe57f..28816ea75a75 100644 --- a/cmds/incident_helper/src/parsers/KernelWakesParser.cpp +++ b/cmds/incident_helper/src/parsers/KernelWakesParser.cpp @@ -33,7 +33,9 @@ KernelWakesParser::Parse(const int in, const int out) const int nline = 0; ProtoOutputStream proto; - Table table(WakeupSourceProto::_FIELD_NAMES, WakeupSourceProto::_FIELD_IDS, WakeupSourceProto::_FIELD_COUNT); + Table table(KernelWakeSourcesProto::WakeupSource::_FIELD_NAMES, + KernelWakeSourcesProto::WakeupSource::_FIELD_IDS, + KernelWakeSourcesProto::WakeupSource::_FIELD_COUNT); // parse line by line while (reader.readLine(&line)) { @@ -57,7 +59,7 @@ KernelWakesParser::Parse(const int in, const int out) const continue; } - long long token = proto.start(KernelWakeSources::WAKEUP_SOURCES); + long long token = proto.start(KernelWakeSourcesProto::WAKEUP_SOURCES); for (int i=0; i<(int)record.size(); i++) { if (!table.insertField(&proto, header[i], record[i])) { fprintf(stderr, "[%s]Line %d has bad value %s of %s\n", |