Fix bugreport logs by setting 'extra_options' field
'mode' is parsed and processed correctly but was not being set in
'extra_options'.
Test: Verified by creating full and interactive bugreports and checking
the logs.
Bug: 120527796
Change-Id: I8484ef3c2b1d7eceb34c75971c788cebda4b21cf
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 0f2996e..39f8ed3 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -2046,6 +2046,7 @@
}
static void SetOptionsFromMode(Dumpstate::BugreportMode mode, Dumpstate::DumpOptions* options) {
+ options->extra_options = ModeToString(mode);
switch (mode) {
case Dumpstate::BugreportMode::BUGREPORT_FULL:
options->do_broadcast = true;