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:
Vladislav Bolkhovitin
2009-10-22 12:58:55 +00:00
parent b65169a791
commit b665918dea

View File

@@ -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;
}