Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ca245e5 authored by Abhijeet Kaur's avatar Abhijeet Kaur
Browse files

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
parent 23a6c521
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2046,6 +2046,7 @@ static inline const char* ModeToString(Dumpstate::BugreportMode mode) {
}

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;