Rewrite `log_add_filter_rule()` 74/244274/4
authorMichal Bloch <m.bloch@samsung.com>
Wed, 16 Sep 2020 13:56:17 +0000 (15:56 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Mon, 28 Sep 2020 12:44:16 +0000 (14:44 +0200)
commitbd4b06a724c943e8218bf2407e78ade0eaa63567
tree99c52d4dabf4fe3a0fec1cb0062e327c072b9894
parent7cbec673136a4ec3dcb01c25a4ff6bca78a1d365
Rewrite `log_add_filter_rule()`

 * the last ':' delimiter is now taken instead of the first.
   For example `FOO:::BAR:E` is now tag `FOO:::BAR` with prio `E`
   instead of tag `FOO` and priority `::BAR:E`.

 * fixes a memleak on `list_add()` failure.

 * removes AOSP license because this was the last piece of AOSP code.

Change-Id: I6a94382cd6a1d3b175c5daf71b566dec4ba28717
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/shared/logprint.c
src/tests/filters.c