[RAMEN9610-14973] wlbt: add droplevel handler for lerna
authorIvan Priest <i.priest@samsung.com>
Tue, 7 May 2019 10:39:53 +0000 (11:39 +0100)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:44:59 +0000 (23:44 +0900)
Missing droplevel entry for lerna caused a prevent warning.

Add the handler and comments indicating which tables to
keep in line.

Change-Id: I0fd9064dd62d9081305113c7bc121161c49f7b3e
SCSC-Bug-Id: SSB-52396
Signed-off-by: Ivan Priest <i.priest@samsung.com>
drivers/misc/samsung/scsc/scsc_logring_main.c
include/scsc/scsc_logring.h

index 79767480fa4ef0069f0f8455770702118e36055b..f9e966d1a8f2c4fef0db5d1d4f7d55875d903bfa 100644 (file)
@@ -220,6 +220,7 @@ ADD_DEBUG_MODULE_PARAM(plat_mif, SCSC_DBG1, PLAT_MIF);
 ADD_DEBUG_MODULE_PARAM(kic_common, SCSC_FULL_DEBUG, KIC_COMMON);
 ADD_DEBUG_MODULE_PARAM(wlbtd, SCSC_FULL_DEBUG, WLBTD);
 ADD_DEBUG_MODULE_PARAM(wlog, SCSC_DEBUG, WLOG);
+ADD_DEBUG_MODULE_PARAM(lerna, SCSC_FULL_DEBUG, LERNA);
 #ifdef CONFIG_SCSC_DEBUG_COMPATIBILITY
 ADD_DEBUG_MODULE_PARAM(init_deinit,  SCSC_FULL_DEBUG, SLSI_INIT_DEINIT);
 ADD_DEBUG_MODULE_PARAM(netdev,  SCSC_DBG4, SLSI_NETDEV);
@@ -252,6 +253,9 @@ ADD_DEBUG_MODULE_PARAM(flowc, SCSC_FULL_DEBUG, SLSI_FLOWC);
 #endif
 ADD_DEBUG_MODULE_PARAM(test_me, SCSC_FULL_DEBUG, TEST_ME);
 
+/* Extend this list when you add ADD_DEBUG_MODULE_PARAM, above.
+ * You must also extend "enum scsc_logring_tags"
+ */
 int *scsc_droplevels[] = {
        &scsc_droplevel_binary,
        &scsc_droplevel_bin_wifi_ctrl_rx,
@@ -290,6 +294,7 @@ int *scsc_droplevels[] = {
        &scsc_droplevel_kic_common,
        &scsc_droplevel_wlbtd,
        &scsc_droplevel_wlog,
+       &scsc_droplevel_lerna,
 #ifdef CONFIG_SCSC_DEBUG_COMPATIBILITY
        &scsc_droplevel_init_deinit,
        &scsc_droplevel_netdev,
@@ -320,7 +325,7 @@ int *scsc_droplevels[] = {
        &scsc_droplevel_flowc,
        &scsc_droplevel_smapper,
 #endif
-       &scsc_droplevel_test_me,
+       &scsc_droplevel_test_me, /* Must be last */
 };
 
 #ifdef CONFIG_SCSC_LOG_COLLECTION
index 0eddc9ec8d5deee0a97b45d4b62d237eff468663..0f3274e63df722b28888fd58ca03d7cb3bc575d8 100644 (file)
@@ -16,6 +16,8 @@
 /* NOTE_CREATING_TAGS: when adding a tag here REMEMBER to add it also
  * where required, taking care to maintain the same ordering.
  * (Search 4 NOTE_CREATING_TAGS)
+ *
+ * You must update "int *scsc_droplevels[]" to match.
  */
 enum scsc_logring_tags {
        FIRST_TAG,
@@ -59,6 +61,7 @@ enum scsc_logring_tags {
        KIC_COMMON,
        WLBTD,
        WLOG,
+       LERNA,
 #ifdef CONFIG_SCSC_DEBUG_COMPATIBILITY
        SLSI_INIT_DEINIT,
        SLSI_NETDEV,
@@ -89,7 +92,6 @@ enum scsc_logring_tags {
        SLSI_FLOWC,
        SLSI_SMAPPER,
 #endif
-       LERNA,
        TEST_ME,
        MAX_TAG = TEST_ME /* keep it last */
 };