[PATCH: Change remap format to have mapped-to information on the left of the ->
authorAlan D. Brunelle <Alan.Brunelle@hp.com>
Fri, 24 Mar 2006 10:06:59 +0000 (11:06 +0100)
committerJens Axboe <axboe@suse.de>
Fri, 24 Mar 2006 10:06:59 +0000 (11:06 +0100)
Pretty self-explanatory, works fine for MD devices. Looking into DM
devices next (I think that _may_ take a kernel change).

blkparse_fmt.c

index ceeaaba85fdde8f775528917790f76999297b16b..fe788b5acd968065a9d68e70ca7b402bb3f57bb5 100644 (file)
@@ -338,9 +338,9 @@ static void process_default(char *act, struct per_cpu_info *pci,
 
                get_pdu_remap(t, &r);
                fprintf(ofp, "%llu + %u <- (%d,%d) %llu\n",
-                       (unsigned long long) r.sector, t_sec(t),
+                       (unsigned long long) t->sector, t_sec(t),
                        MAJOR(r.device), MINOR(r.device),
-                       (unsigned long long) t->sector);
+                       (unsigned long long) r.sector);
                break;
        }