[COMMON] lib: dss-reader: Add ACPM log in dss-reader
authorYoungwan Kim <y103.kim@samsung.com>
Mon, 25 Jun 2018 02:04:17 +0000 (11:04 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:04:49 +0000 (17:04 +0900)
Change-Id: I5a7a08403de0d7684246dfc4482c0073dd2f27fb
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
lib/dss-reader.c

index 80439fc1e0f009cc2ec16cf42e754161a0b3b6bf..558358dd1ab9637dd2b4c7f36fb7413bd66c433f 100644 (file)
@@ -90,6 +90,17 @@ int main(int argc, char *argv[])
                if (p->binder[i].time == 0)
                        break;
        }
+#endif
+#ifdef CONFIG_DEBUG_SNAPSHOT_ACPM
+       for (i = 0; i < DSS_LOG_MAX_NUM; i++)
+       {
+               printf("log[%.9f] = {  'type' : 'acpmlog', 'log' : '%s', 'value' : %d }\n",
+                               p->acpm[i].acpm_time/1.0e9,
+                               p->acpm[i].log,
+                               p->acpm[i].data);
+               if (p->acpm[i].time == 0)
+                       break;
+       }
 #endif
        return 0;
 }