OSDN Git Service

Simpleperf: rewrite unsupported logging style.
authorYabin Cui <yabinc@google.com>
Fri, 18 Sep 2015 18:10:55 +0000 (11:10 -0700)
committerYabin Cui <yabinc@google.com>
Mon, 21 Sep 2015 18:46:16 +0000 (11:46 -0700)
commit42aa127e8ab4c5eb5197cf3cc68470cf3a0fdcbb
tree55b7c1c506dfd1376136456b847aca8933eee8d5
parent12f454e24a518d81fe42043b7142582b81694363
Simpleperf: rewrite unsupported logging style.

Previously we can use a ternary operator to choose the log level, like
(error ? LOG(ERROR) : LOG(DEBUG)) << xxx. But as the LOG() macro is about
to change, we can no longer write like this.

This CL also changes some improper log levels and log messages.

Change-Id: Ib9a55f2ca241516a6e89afad4a733cc07b19570f
simpleperf/event_fd.cpp
simpleperf/event_type.cpp
simpleperf/workload.cpp