summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong2017-07-07 17:19:06 -0500
committerYifan Hong2017-07-07 18:26:02 -0500
commitae53a0e6d3f605cc124009cb0172f152f69417a4 (patch)
treed6e85d0a68080c46834283b0d9519acdaefef625 /KernelConfigParser.cpp
parent79efa8a35e677cb8ac79041737e2700b0e50de15 (diff)
downloadplatform-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.cpp4
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
30const std::stringstream& KernelConfigParser::error() const { 30std::stringbuf* KernelConfigParser::error() const {
31 return mError; 31 return mError.rdbuf();
32} 32}
33 33
34std::map<std::string, std::string>& KernelConfigParser::configs() { 34std::map<std::string, std::string>& KernelConfigParser::configs() {