mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 05:01:27 +00:00
Use of strict_strtoul() instead of simple_strtoul() as suggested by checkpatch. Other uses of simple_strtoul() are OK and can't be converted
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1241 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1342,7 +1342,12 @@ static int scst_write_trace(const char *buf, size_t length,
|
||||
case SCST_TRACE_ACTION_VALUE:
|
||||
while (isspace(*p) && *p != '\0')
|
||||
p++;
|
||||
level = simple_strtoul(p, NULL, 0);
|
||||
res = strict_strtoul(p, 0, &level);
|
||||
if (res != 0) {
|
||||
PRINT_ERROR("Invalud trace value \"%s\"", p);
|
||||
res = -EINVAL;
|
||||
goto out_free;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user