X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Futils%2Fdebug.c;h=3ce3013d7d9b4d5b3bea695b09fd29dc7c701d3c;hp=df15cd09d97dd81d4d7969cb28fe94d18b11470f;hb=afef2264887b5223d85d89c57fcd366601f22c39;hpb=cf37a46d60e6249d1d6339cbce39edcb6800a096 diff --git a/lnet/utils/debug.c b/lnet/utils/debug.c index df15cd0..3ce3013 100644 --- a/lnet/utils/debug.c +++ b/lnet/utils/debug.c @@ -352,7 +352,7 @@ static int cmp_rec(const void *p1, const void *p2) return 0; return 1; } - + static void print_rec(struct dbg_line ***linevp, int used, int fdout) { struct dbg_line **linev = *linevp; @@ -561,7 +561,7 @@ print: printf("Debug log: %lu lines, %lu kept, %lu dropped, %lu bad.\n", dropped + kept + bad, kept, dropped, bad); - + return 0; } @@ -598,7 +598,7 @@ int jt_dbg_debug_kernel(int argc, char **argv) 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", @@ -617,7 +617,7 @@ int jt_dbg_debug_kernel(int argc, char **argv) if (raw) return 0; - + fdin = open(filename, O_RDONLY); if (fdin < 0) { if (errno == ENOENT) /* no dump file created */