return 0;
return 1;
}
-
+
static void print_rec(struct dbg_line ***linevp, int used, int fdout)
{
struct dbg_line **linev = *linevp;
printf("Debug log: %lu lines, %lu kept, %lu dropped, %lu bad.\n",
dropped + kept + bad, kept, dropped, bad);
-
+
return 0;
}
if (stat(filename, &st) == 0 && S_ISREG(st.st_mode))
unlink(filename);
-
+
fdin = dbg_open_ctlhandle(DUMP_KERNEL_CTL_NAME);
if (fdin < 0) {
fprintf(stderr, "open(dump_kernel) failed: %s\n",
if (raw)
return 0;
-
+
fdin = open(filename, O_RDONLY);
if (fdin < 0) {
if (errno == ENOENT) /* no dump file created */