libdlog: apply MIT license; clarify license confusion
In multiple places, the copyright of The Android Open Source Project
was mistakenly added (due to lazy copy-paste) or wasn't removed when
relevant code got replaced.
Specifically:
* the entirety of `translate_syslog.c`, `parsers.c` were written
in commit
dd125c915efd411ac20229ce15f9c63a298384e3, as was the
syslog related stuff inside `queued_entry.c`
* `parse_kmsg_message` from `queued_entry.c` was written in
commit
4425f7c497d5c79ee94baa335c6f4938d2fa0d43, back then
under the name `parse_entry_raw`.
* `parse androidlogger_message` can't avoid similarity to the OG
code from Android because a lot of it is just copying from
member fields (specification is not copyrightable), but as far
as I can tell it was actually written mostly from scratch (see
commit
4188ddaff9cb28c1865b23a94738653382091962) and copying
from specific fields readded independently later in commit
00320e1655ac0f31f743be76a866fedf2b540901.
* in `logcommon.c` there is a lot of pipe related stuff which is
split over a ton of refactoring commits, but is obviously all
Samsung if you take a glance at 2015 commits and the state of
the repo before adding the pipe backend.
* in `logcommon.c` there's also a lot of miscellaneous chaff whose
authorship maps fairly well to what `git blame` says.
* in `logcommon.c` there's the function `filter_pri_to_char`,
which is technically original Android code but it is so trivial
that it is really nothing more than its own specification, so
it shouldn't cause any legal issues. (The opposite function,
`filter_char_to_pri`, was rewritten in
f7b5ee04e80c53a090c9.)
Change-Id: Ibc6cccdcf06588b7c9a431c3113e77b92e58947a
Signed-off-by: Michal Bloch <m.bloch@samsung.com>