dfu: Don't print out progress if no terminal 39/231139/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Fri, 17 Apr 2020 10:22:18 +0000 (19:22 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Fri, 17 Apr 2020 10:50:49 +0000 (19:50 +0900)
commit6431691af7e2529a4ce447fe10905806b4c93675
treeca979362438f25a47b65d39b2dfb3e478177eb19
parentea71e5d99da0966d87324dc2af87442c6738cfd2
dfu: Don't print out progress if no terminal

Since commit 76316d20e333 ("dfu: Improve progress display"), broken
progress bar can flood massively if the output is redirected to
non-terminal device such as a log file. To prevent this, prints out
the simple result instead of progress bar if terminal doesn't exist.

Change-Id: If5edb6408b7614951180fb4a73df53ad06572cc7
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/dfu.c