From: Alan D. Brunelle Date: Fri, 24 Mar 2006 10:06:59 +0000 (+0100) Subject: [PATCH: Change remap format to have mapped-to information on the left of the -> X-Git-Tag: blktrace-0.99.2~46 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e9f883ca480064f5a7c18b4a9145b6afb1da6de2;p=blktrace.git [PATCH: Change remap format to have mapped-to information on the left of the -> Pretty self-explanatory, works fine for MD devices. Looking into DM devices next (I think that _may_ take a kernel change). --- diff --git a/blkparse_fmt.c b/blkparse_fmt.c index ceeaaba..fe788b5 100644 --- a/blkparse_fmt.c +++ b/blkparse_fmt.c @@ -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; }