Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4c094a5 authored by Andrew Morton's avatar Andrew Morton Committed by David Woodhouse
Browse files

[MTD] [NAND] drivers/mtd/nand/nandsim.c: fix printk warnings

parent 4f0ca70e
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -586,7 +586,8 @@ static int init_nandsim(struct mtd_info *mtd)
	if (ns->busw == 16)
		NS_WARN("16-bit flashes support wasn't tested\n");

	printk("flash size: %llu MiB\n",        ns->geom.totsz >> 20);
	printk("flash size: %llu MiB\n",
			(unsigned long long)ns->geom.totsz >> 20);
	printk("page size: %u bytes\n",         ns->geom.pgsz);
	printk("OOB area size: %u bytes\n",     ns->geom.oobsz);
	printk("sector size: %u KiB\n",         ns->geom.secsz >> 10);
@@ -596,7 +597,8 @@ static int init_nandsim(struct mtd_info *mtd)
	printk("bits in sector size: %u\n",     ns->geom.secshift);
	printk("bits in page size: %u\n",       ns->geom.pgshift);
	printk("bits in OOB size: %u\n",	ns->geom.oobshift);
	printk("flash size with OOB: %llu KiB\n", ns->geom.totszoob >> 10);
	printk("flash size with OOB: %llu KiB\n",
			(unsigned long long)ns->geom.totszoob >> 10);
	printk("page address bytes: %u\n",      ns->geom.pgaddrbytes);
	printk("sector address bytes: %u\n",    ns->geom.secaddrbytes);
	printk("options: %#x\n",                ns->options);