Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-4629 libcfs: fix issues found by Klocwork Insight tool
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
linux
/
linux-cpu.c
diff --git
a/libcfs/libcfs/linux/linux-cpu.c
b/libcfs/libcfs/linux/linux-cpu.c
index
d0524da
..
ffdc440
100644
(file)
--- a/
libcfs/libcfs/linux/linux-cpu.c
+++ b/
libcfs/libcfs/linux/linux-cpu.c
@@
-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;
}