summaryrefslogtreecommitdiff
path: root/btt/trace_complete.c
diff options
context:
space:
mode:
authorAlan D. Brunelle <alan.brunelle@hp.com>2008-02-13 11:46:22 -0500
committerAlan D. Brunelle <alan.brunelle@hp.com>2008-02-13 11:47:22 -0500
commit8b10aae0cd4137f1cc9848181e4f45a9fa20de24 (patch)
tree09a9447aa680f1d67d4c4e93f2b041ce8b544065 /btt/trace_complete.c
parentc8aea612abc714072e346366cb0e5cf9da8a2f5f (diff)
downloadblktrace-8b10aae0cd4137f1cc9848181e4f45a9fa20de24.tar.gz
blktrace-8b10aae0cd4137f1cc9848181e4f45a9fa20de24.tar.bz2
Cleanups: Fixed IOPs in btt left over at end of run
o Using valgrind, determined we had Q IOPs left over that weren't used. Added "all" list, and then deleted these at end. o Removed old debug stuff (COUNT_IOS, DEBUG, ...) o Fixed a bunch of white space at end of lines. Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com>
Diffstat (limited to 'btt/trace_complete.c')
-rw-r--r--btt/trace_complete.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/btt/trace_complete.c b/btt/trace_complete.c
index b4dcadd..50f3cfa 100644
--- a/btt/trace_complete.c
+++ b/btt/trace_complete.c
@@ -20,13 +20,13 @@
*/
#include "globals.h"
-static inline void __out(FILE *ofp, __u64 tm, enum iop_type type,
+static inline void __out(FILE *ofp, __u64 tm, enum iop_type type,
__u64 sec, __u32 nsec, int indent)
{
if (tm != (__u64)-1) {
- if (indent)
+ if (indent)
fprintf(ofp, " ");
- fprintf(ofp, "%5d.%09lu %c %10llu+%-4u\n",
+ fprintf(ofp, "%5d.%09lu %c %10llu+%-4u\n",
(int)SECONDS(tm), (unsigned long)NANO_SECONDS(tm),
type2c(type), (unsigned long long)sec, nsec);
}
@@ -85,7 +85,7 @@ static void handle_complete(struct io *c_iop)
display_io_track(per_io_ofp, q_iop);
}
- LIST_DEL(&q_iop->f_head);
+ list_del(&q_iop->f_head);
io_release(q_iop);
}
}