aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2008-04-29 08:37:52 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-04-29 08:48:55 -0400
commitd34c87e4ba3d1857f80a65179e81a18705a31656 (patch)
tree6460d4a1de0c2e26ab9eed6babc916092eed4559 /block/blk-core.c
parente7b241a7715d2a0885f779f5baa63711d71b1d75 (diff)
block: replace sizeof(rq->cmd) with BLK_MAX_CDB
This is a preparation for changing rq->cmd from the static array to a pointer. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Cc: Boaz Harrosh <bharrosh@panasas.com> Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Cc: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index fe0d1390b743..e6fdb288be65 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -173,7 +173,7 @@ void blk_dump_rq_flags(struct request *rq, char *msg)
173 173
174 if (blk_pc_request(rq)) { 174 if (blk_pc_request(rq)) {
175 printk(KERN_INFO " cdb: "); 175 printk(KERN_INFO " cdb: ");
176 for (bit = 0; bit < sizeof(rq->cmd); bit++) 176 for (bit = 0; bit < BLK_MAX_CDB; bit++)
177 printk("%02x ", rq->cmd[bit]); 177 printk("%02x ", rq->cmd[bit]);
178 printk("\n"); 178 printk("\n");
179 } 179 }