current code will show_stats() even when do_foo() return non zero.
diff --git a/blkparse.c b/blkparse.c
index b4c371a..f97e77c 100644
--- a/blkparse.c
+++ b/blkparse.c
@@ -2654,7 +2654,8 @@ int main(int argc, char *argv[])
else
ret = do_file();
- show_stats();
+ if (!ret)
+ show_stats();
if (ofp_buffer) {
fflush(ofp);
free(ofp_buffer);
-
To unsubscribe from this list: send the line "unsubscribe linux-btrace" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html