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

Commit 5354f60f authored by Tao Bao's avatar Tao Bao
Browse files

updater: Fix the operator order.

Shift operator ("<<") has a higher precedence level than ternary
operator ("?").

Test: BBOTA update log says "performing update" as opposed to
      "performing 0".

Change-Id: I0cf60cbfc11415e94f1f9f6effe75f14d13a1874
parent 4e48a6c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1358,7 +1358,7 @@ static Value* PerformBlockImageUpdate(const char* name, State* state, int /* arg
    CommandParameters params = {};
    params.canwrite = !dryrun;

    LOG(INFO) << "performing " << dryrun ? "verification" : "update";
    LOG(INFO) << "performing " << (dryrun ? "verification" : "update");
    if (state->is_retry) {
        is_retry = true;
        LOG(INFO) << "This update is a retry.";