projects
/
platform
/
upstream
/
corewatcher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64743ff
)
Do not duplicate reason line - we already print the correct one.
author
Auke Kok
<auke-jan.h.kok@intel.com>
Mon, 9 Aug 2010 23:18:39 +0000
(16:18 -0700)
committer
Auke Kok
<auke-jan.h.kok@intel.com>
Mon, 9 Aug 2010 23:18:39 +0000
(16:18 -0700)
coredump.c
patch
|
blob
|
history
diff --git
a/coredump.c
b/coredump.c
index
20a5d4f
..
28eb108
100644
(file)
--- a/
coredump.c
+++ b/
coredump.c
@@
-217,7
+217,7
@@
char *build_core_header(char *appfile, char *corefile) {
char *extract_core(char *corefile)
{
- char *command = NULL, *c1 = NULL, *c2 = NULL, *line
, *c3
;
+ char *command = NULL, *c1 = NULL, *c2 = NULL, *line;
char *coredump = NULL;
char *appfile;
FILE *file;
@@
-256,9
+256,8
@@
char *extract_core(char *corefile)
continue;
}
if (strstr(line, "Program terminated with signal")) {
- c3 = strchr(line, ',');
- if (c3)
- sprintf(line, "reason:%s", c3+1);
+ free(line);
+ continue;
}
if (c1) {