summaryrefslogtreecommitdiff
path: root/blkparse_fmt.c
diff options
context:
space:
mode:
authorTom Zanussi <zanussi@us.ibm.com>2006-12-30 20:13:40 +0100
committerJens Axboe <jens.axboe@oracle.com>2006-12-30 20:13:40 +0100
commitbd5e71cf069defccb2a5200c03ae7e55697791f8 (patch)
treed24e5e4d7b3e653f447bea520b7a655f5f69db59 /blkparse_fmt.c
parentfb863d7ccfc7105bd71c89129e472f5eae14be9c (diff)
downloadblktrace-bd5e71cf069defccb2a5200c03ae7e55697791f8.tar.gz
blktrace-bd5e71cf069defccb2a5200c03ae7e55697791f8.tar.bz2
[PATCH] Fix back descriptors
The 'B' is really a bounce, not a backmerge. Fixup other merge descriptors as well. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'blkparse_fmt.c')
-rw-r--r--blkparse_fmt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/blkparse_fmt.c b/blkparse_fmt.c
index 7830738..b309b4b 100644
--- a/blkparse_fmt.c
+++ b/blkparse_fmt.c
@@ -335,7 +335,7 @@ static void process_default(char *act, struct per_cpu_info *pci,
case 'D': /* Issue */
case 'I': /* Insert */
case 'Q': /* Queue */
- case 'W': /* Bounce */
+ case 'B': /* Bounce */
if (t->action & BLK_TC_ACT(BLK_TC_PC)) {
char *p;
fprintf(ofp, "%u ", t->bytes);
@@ -356,9 +356,8 @@ static void process_default(char *act, struct per_cpu_info *pci,
}
break;
- case 'B': /* Back merge */
+ case 'M': /* Back merge */
case 'F': /* Front merge */
- case 'M': /* Front or back merge */
case 'G': /* Get request */
case 'S': /* Sleep request */
fprintf(ofp, "%llu + %u [%s]\n", (unsigned long long) t->sector,