Whamcloud - gitweb
LU-4629 libcfs: fix issues found by Klocwork Insight tool
[fs/lustre-release.git] / libcfs / libcfs / linux / linux-cpu.c
index d0524da..ffdc440 100644 (file)
@@ -923,7 +923,7 @@ cfs_cpt_table_create_pattern(char *pattern)
                        break;
                }
 
-               if (sscanf(str, "%u%n", &cpt, &n) < 1) {
+               if (sscanf(str, "%d%n", &cpt, &n) < 1) {
                        CERROR("Invalid cpu pattern %s\n", str);
                        goto failed;
                }