diff options
author | Yifan Hong | 2017-07-07 17:19:06 -0500 |
---|---|---|
committer | Yifan Hong | 2017-07-07 18:26:02 -0500 |
commit | ae53a0e6d3f605cc124009cb0172f152f69417a4 (patch) | |
tree | d6e85d0a68080c46834283b0d9519acdaefef625 /KernelConfigParser.cpp | |
parent | 79efa8a35e677cb8ac79041737e2700b0e50de15 (diff) | |
download | platform-system-libvintf-ae53a0e6d3f605cc124009cb0172f152f69417a4.tar.gz platform-system-libvintf-ae53a0e6d3f605cc124009cb0172f152f69417a4.tar.xz platform-system-libvintf-ae53a0e6d3f605cc124009cb0172f152f69417a4.zip |
KernelConfigParser::error() returns internal buffer.
It is easier to log errors now (instead of calling
... << error().str()
each time.)
Bug: 38324908
Test: pass
Change-Id: Iba8607db032ff77b578831d1f638e9b18c4b548e
Diffstat (limited to 'KernelConfigParser.cpp')
-rw-r--r-- | KernelConfigParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/KernelConfigParser.cpp b/KernelConfigParser.cpp index e657a33..1d08fca 100644 --- a/KernelConfigParser.cpp +++ b/KernelConfigParser.cpp | |||
@@ -27,8 +27,8 @@ status_t KernelConfigParser::finish() { | |||
27 | return process("\n", 1 /* sizeof "\n" */); | 27 | return process("\n", 1 /* sizeof "\n" */); |
28 | } | 28 | } |
29 | 29 | ||
30 | const std::stringstream& KernelConfigParser::error() const { | 30 | std::stringbuf* KernelConfigParser::error() const { |
31 | return mError; | 31 | return mError.rdbuf(); |
32 | } | 32 | } |
33 | 33 | ||
34 | std::map<std::string, std::string>& KernelConfigParser::configs() { | 34 | std::map<std::string, std::string>& KernelConfigParser::configs() { |