debug: drop sscanf, use kstrto variant instead
authorYixun Lan <yixun.lan@amlogic.com>
Fri, 11 May 2018 06:20:29 +0000 (14:20 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 11 May 2018 06:21:50 +0000 (14:21 +0800)
commit77768fda2380ff765ea5d79cda620e4710550bcb
treef44d7393f203c2a8e480e6150382a92b024c79d3
parentbf91668e9c3c1b767446303dbc717c5b8a24dc0d
debug: drop sscanf, use kstrto variant instead

PD#165796: debug: drop sscanf, use kstrto variant instead

kstrto is kernel reconmmend function which is more safe than sscanf
this will also fix the following checkpatch.pl warning

WARNING: Prefer kstrto<type> to single variable sscanf
+       ret = sscanf(buf, "%ld", &val);

Change-Id: I9a4673b9aa43c10f51a20778ba520461ee0a7984
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
drivers/amlogic/debug/debug_lockup.c