staging: android: logger: Allocate logs dynamically at boot (v3)
authorTim Bird <tim.bird@am.sony.com>
Thu, 10 May 2012 22:11:36 +0000 (15:11 -0700)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 22 Apr 2021 08:32:07 +0000 (10:32 +0200)
commit6ca9d6dd810cf86292ed89eec060410a6ce1514a
tree4bc7ee06e1ace580aab1be7a5be17c1e914e3149
parent2c04b2506818b87d41cfe9f361bf2d2ba201c53f
staging: android: logger: Allocate logs dynamically at boot (v3)

This changes the log initialization to be dynamic, but still
at boot time.  These changes are a predecessor to implementing
runtime allocation and freeing of logs, to make the Android logger
less hard-coded.

Change from a fixed set of static log structures, to allocation
at init time into a list.  Return proper error numbers on log
allocation failure.

Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/logger.c