projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dbc3cc
)
[COMMON] lib: dss: fix bug setting 0 at wrong position in acpm log
author
Youngwan Kim
<y103.kim@samsung.com>
Wed, 11 Jul 2018 12:11:47 +0000
(21:11 +0900)
committer
Sunyoung Kang
<sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:04:52 +0000
(17:04 +0900)
Change-Id: I1c7adcca4a35f28083f8897cc67149b397ee63a9
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
lib/debug-snapshot-log.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/debug-snapshot-log.c
b/lib/debug-snapshot-log.c
index e961633a4c3b5c875e35044147739d54262bdc56..f0de5bf459ba2acce2be7e76ad41b5673136420f 100644
(file)
--- a/
lib/debug-snapshot-log.c
+++ b/
lib/debug-snapshot-log.c
@@
-1299,13
+1299,13
@@
void dbg_snapshot_acpm(unsigned long long timestamp, const char *log, unsigned i
(ARRAY_SIZE(dss_log->acpm) - 1);
int len = strlen(log);
- if (len >=
9
)
- len =
9
;
+ if (len >=
8
)
+ len =
8
;
dss_log->acpm[i].time = cpu_clock(cpu);
dss_log->acpm[i].acpm_time = timestamp;
strncpy(dss_log->acpm[i].log, log, len);
- dss_log->acpm[i].log[
8
] = '\0';
+ dss_log->acpm[i].log[
len
] = '\0';
dss_log->acpm[i].data = data;
}
}