Sfoglia il codice sorgente

Revert "[MTD] blkdev helper code: fix printk format warning"

This reverts commit 668040fcd1e06fc3e68a92708cbdfa5a52c37d3c.

The 'flags' field of the struct request is 'unsigned long'. Quite
how Randy came to see 'long int format, different type arg' I don't
know, but it doesn't seem to be the case any more.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
David Woodhouse 18 anni fa
parent
commit
e4e3295f0c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/mtd/mtd_blkdevs.c

+ 1 - 1
drivers/mtd/mtd_blkdevs.c

@@ -69,7 +69,7 @@ static int do_blktrans_request(struct mtd_blktrans_ops *tr,
 		return 1;
 		return 1;
 
 
 	default:
 	default:
-		printk(KERN_NOTICE "Unknown request %d\n", rq_data_dir(req));
+		printk(KERN_NOTICE "Unknown request %ld\n", rq_data_dir(req));
 		return 0;
 		return 0;
 	}
 	}
 }
 }