diff options
Diffstat (limited to 'tools/incident_section_gen/main.cpp')
-rw-r--r-- | tools/incident_section_gen/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/incident_section_gen/main.cpp b/tools/incident_section_gen/main.cpp index 3f9588acf827..4e202df3134e 100644 --- a/tools/incident_section_gen/main.cpp +++ b/tools/incident_section_gen/main.cpp @@ -14,13 +14,12 @@ * limitations under the License. */ - #include <frameworks/base/core/proto/android/os/incident.pb.h> #include <map> #include <set> -#include <string> #include <sstream> +#include <string> using namespace android; using namespace android::os; @@ -422,7 +421,8 @@ static bool generateSectionListCpp(Descriptor const* descriptor) { printf(" NULL),\n"); break; case SECTION_DUMPSYS: - printf(" new DumpsysSection(%d,", field->number()); + printf(" new DumpsysSection(%d, \"%s\",", field->number(), + s.userdebug_and_eng_only() ? "true" : "false"); splitAndPrint(s.args()); printf(" NULL),\n"); break; |