Merge "toolbox: getevent: disable stdout buffering"

am: fa14bc85b0

Change-Id: I89a425c4110cd8fbb2a1ea588922f018ba5212e8
This commit is contained in:
Gary Bisson 2019-01-16 17:02:01 -08:00 committed by android-build-merger
commit 81ce79e892

View file

@ -530,6 +530,9 @@ int getevent_main(int argc, char *argv[])
const char *device = NULL;
const char *device_path = "/dev/input";
/* disable buffering on stdout */
setbuf(stdout, NULL);
opterr = 0;
do {
c = getopt(argc, argv, "tns:Sv::dpilqc:rh");