kdb: Replace strncmp with str_has_prefix
authorChuhong Yuan <hslester96@gmail.com>
Mon, 29 Jul 2019 15:13:59 +0000 (23:13 +0800)
committerDaniel Thompson <daniel.thompson@linaro.org>
Tue, 3 Sep 2019 10:19:31 +0000 (11:19 +0100)
commit635714312e6a515de2e78e74bf8d5b10593a4dbf
tree0ac32e50cec11cc9a955f5b832b685ccaf323365
parentd1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1
kdb: Replace strncmp with str_has_prefix

strncmp(str, const, len) is error-prone.
We had better use newly introduced
str_has_prefix() instead of it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
kernel/debug/kdb/kdb_main.c