From 59c77fd4f5a60d9e7d1c49b8b4c8d5e6e22a1298 Mon Sep 17 00:00:00 2001 From: Youngwan Kim Date: Mon, 25 Jun 2018 11:04:17 +0900 Subject: [PATCH] [COMMON] lib: dss-reader: Add ACPM log in dss-reader Change-Id: I5a7a08403de0d7684246dfc4482c0073dd2f27fb Signed-off-by: Youngwan Kim --- lib/dss-reader.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; } -- 2.20.1