Allow setting log level back to compile time value
authorJunhan Zhou <Junhan@mellanox.com>
Mon, 10 Sep 2018 20:36:06 +0000 (16:36 -0400)
committerJunhan Zhou <Junhan@mellanox.com>
Tue, 11 Sep 2018 14:53:09 +0000 (10:53 -0400)
commit2adb7867077cb25a2f9d127f5f7c1c775dd6d92a
tree1c4d263815bd54377afa917c94f77fb67a98e670
parent441b1e8df763ff382877e2a8798546f7e83a40e4
Allow setting log level back to compile time value

When using the tf_log_set_max_level() function, one can dynamically
set the log level to a value smaller than then compile time specified
one, but not equal. This means that when the log level have been
lowered, it can't be reset to the previous value. This commit modifies
this function to allow setting the log level back to the compile time
value.

Fixes ARM-software/tf-issues#624

Change-Id: Ib157715c8835982ce4977ba67a48e18ff23d5a61
Signed-off-by: Junhan Zhou <Junhan@mellanox.com>
common/tf_log.c