OSDN Git Service

Added option to redirect stdout on run_command_always.
authorFelipe Leme <felipeal@google.com>
Fri, 1 Apr 2016 17:02:00 +0000 (10:02 -0700)
committerFelipe Leme <felipeal@google.com>
Fri, 1 Apr 2016 18:46:31 +0000 (11:46 -0700)
commit29c39715b8a45ca2e97aecd8ebb63183f63da72b
tree6aafac2ac3ee3764e0e6fe6b089beb02ea058195
parentd5194bd30cd8284ed65eb63e713fee65c31c9d5c
Added option to redirect stdout on run_command_always.

There are cases where a command should not write to stdout. For example,
when sending the initial broadcast before the header is printed.

This change adds this option to run_command_always, and uses enums to
make it easier to read what's been passed to it.

BUG: 27953643

Change-Id: I9aed0cb0df4112b31d2079241114e206b9d0bb0c
cmds/dumpstate/dumpstate.h
cmds/dumpstate/utils.cpp