Skip to content

Commit 14b1ffb

Browse files
olafheringpaulusmack
authored andcommitted
[POWERPC] Update swim3 printk after blkdev.h change
drivers/block/swim3.c: In function 'swim3_interrupt': drivers/block/swim3.c:640: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/block/swim3.c:746: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' Update printk format string after blkdev.h change: Split struct request ->flags into two parts Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent 2e19458 commit 14b1ffb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/block/swim3.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ static irqreturn_t swim3_interrupt(int irq, void *dev_id, struct pt_regs *regs)
636636
intr = in_8(&sw->intr);
637637
err = (intr & ERROR_INTR)? in_8(&sw->error): 0;
638638
if ((intr & ERROR_INTR) && fs->state != do_transfer)
639-
printk(KERN_ERR "swim3_interrupt, state=%d, dir=%lx, intr=%x, err=%x\n",
639+
printk(KERN_ERR "swim3_interrupt, state=%d, dir=%x, intr=%x, err=%x\n",
640640
fs->state, rq_data_dir(fd_req), intr, err);
641641
switch (fs->state) {
642642
case locating:
@@ -742,7 +742,7 @@ static irqreturn_t swim3_interrupt(int irq, void *dev_id, struct pt_regs *regs)
742742
if ((stat & ACTIVE) == 0 || resid != 0) {
743743
/* musta been an error */
744744
printk(KERN_ERR "swim3: fd dma: stat=%x resid=%d\n", stat, resid);
745-
printk(KERN_ERR " state=%d, dir=%lx, intr=%x, err=%x\n",
745+
printk(KERN_ERR " state=%d, dir=%x, intr=%x, err=%x\n",
746746
fs->state, rq_data_dir(fd_req), intr, err);
747747
end_request(fd_req, 0);
748748
fs->state = idle;

0 commit comments

Comments
 (0)