Move the logs from STDIO/STDERR to system log.

In this CL, the logging behaviors are modified.
In the original design, the STDOUT and STRERR are used. However,
to make the logs more accessible, the system log is used.

By using the LOG(X) apis, the logs will now go to /var/log/message

BUG=chromium:712706
TEST=Build package for Guado board and test if the update process is started correctly.
Also, check if the logs of the updater are shown in the system log.

CQ-DEPEND=CL:538560

Change-Id: I8d582858b965ca8a1414300dd2e539de985a47b6
Reviewed-on: https://chromium-review.googlesource.com/537199
Commit-Ready: Zhongze Hu <frankhu@google.com>
Tested-by: Jen-Chieh Huang <jenchiehhuang@chromium.org>
Tested-by: Zhongze Hu <frankhu@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jiwoong Lee <porce@chromium.org>
2 files changed
tree: 6bed48dcb5269e11460f9d3212149fba3c6aa17b
  1. conf/
  2. COMMIT-QUEUE.ini
  3. common.mk
  4. LICENSE
  5. Makefile
  6. mimo_fw_updater.cc
  7. README.md
README.md

MIMO-updater is a utility to upgrade the displaylink FW in the MIMO device.

Requirements

The GNU C/C++ library and libusb 1.0 are required.

Building

At the top level of the directory.

$ make

Alternatively at Chromium OS development environment,

$ emerge-${BOARD} mimo-updater

How to use

$ mimo-updater $${FW file name}