From: Youngwan Kim Date: Mon, 25 Jun 2018 02:04:17 +0000 (+0900) Subject: [COMMON] lib: dss-reader: Add ACPM log in dss-reader X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=59c77fd4f5a60d9e7d1c49b8b4c8d5e6e22a1298;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] lib: dss-reader: Add ACPM log in dss-reader Change-Id: I5a7a08403de0d7684246dfc4482c0073dd2f27fb Signed-off-by: Youngwan Kim --- diff --git a/lib/dss-reader.c b/lib/dss-reader.c index 80439fc1e0f0..558358dd1ab9 100644 --- a/lib/dss-reader.c +++ b/lib/dss-reader.c @@ -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; }