diff options
| author | 2016-06-03 15:17:07 -0700 | |
|---|---|---|
| committer | 2016-06-06 15:32:30 -0700 | |
| commit | 249beee359da256f7c41c481d45c06765b6a1d8a (patch) | |
| tree | a19083fed16970030c5377995d92a77e0b359a1b /cmds/dumpstate/dumpstate.cpp | |
| parent | 09e5f59bc9a371c7b83153bb51543ec759684227 (diff) | |
Expose more useful functions that can be used by dumpstate_board().
BUG: 28640932
Fixes: 28867848
Change-Id: I38123e5b348f4560212559176eb60dbad4f22364
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
| -rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 1add3469c0..6a66abd107 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -97,7 +97,7 @@ std::string bugreport_dir; // TODO: change to "v1" before final N build static std::string VERSION_DEFAULT = "v1-dev4"; -static bool is_user_build() { +bool is_user_build() { return 0 == strncmp(build_type, "user", PROPERTY_VALUE_MAX - 1); } @@ -586,7 +586,6 @@ static int _add_file_from_fd(const char *title, const char *path, int fd) { return add_zip_entry_from_fd(ZIP_ROOT_DIR + path, fd) ? 0 : 1; } -/* adds all files from a directory to the zipped bugreport file */ void add_dir(const char *dir, bool recursive) { if (!zip_writer) { MYLOGD("Not adding dir %s because zip_writer is not set\n", dir); |