projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
028df76
)
perf target: Fix check on buffer size
author
Namhyung Kim
<
[email protected]
>
Thu, 26 Jul 2012 01:50:10 +0000
(10:50 +0900)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Wed, 1 Aug 2012 21:42:54 +0000
(18:42 -0300)
It was a mistake just replace assert to BUG_ON since its condition
should be negated. Fix it.
Signed-off-by: Namhyung Kim <
[email protected]
>
Cc: "Kirill A. Shutemov" <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Kirill A. Shutemov <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Ulrich Drepper <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/target.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/target.c
b/tools/perf/util/target.c
index 3f59c496e64c9035311389fb73e9468fb47e7889..051eaa68095e75a61b82aac4c479cf4c8101ef71 100644
(file)
--- a/
tools/perf/util/target.c
+++ b/
tools/perf/util/target.c
@@
-110,7
+110,7
@@
int perf_target__strerror(struct perf_target *target, int errnum,
int idx;
const char *msg;
- BUG_ON(buflen
>
0);
+ BUG_ON(buflen
==
0);
if (errnum >= 0) {
const char *err = strerror_r(errnum, buf, buflen);