patch-2.4.0-test7 linux/drivers/block/raid0.c
Next file: linux/drivers/block/raid1.c
Previous file: linux/drivers/block/md.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Thu Aug 10 12:35:50 2000
- Orig file:
v2.4.0-test6/linux/drivers/block/raid0.c
- Orig date:
Wed Aug 9 19:19:50 2000
diff -u --recursive --new-file v2.4.0-test6/linux/drivers/block/raid0.c linux/drivers/block/raid0.c
@@ -103,7 +103,7 @@
zone->nb_dev = c;
zone->size = (smallest->size - current_offset) * c;
- printk(" zone->nb_dev: %d, size: %d\n",zone->nb_dev,zone->size);
+ printk(" zone->nb_dev: %d, size: %ld\n",zone->nb_dev,zone->size);
if (!conf->smallest || (zone->size < conf->smallest->size))
conf->smallest = zone;
@@ -112,7 +112,7 @@
curr_zone_offset += zone->size;
current_offset = smallest->size;
- printk("current zone offset: %d\n", current_offset);
+ printk("current zone offset: %ld\n", current_offset);
}
printk("done.\n");
return 0;
@@ -139,7 +139,7 @@
goto out_free_conf;
printk("raid0 : md_size is %d blocks.\n", md_size[mdidx(mddev)]);
- printk("raid0 : conf->smallest->size is %d blocks.\n", conf->smallest->size);
+ printk("raid0 : conf->smallest->size is %ld blocks.\n", conf->smallest->size);
nb_zone = md_size[mdidx(mddev)]/conf->smallest->size +
(md_size[mdidx(mddev)] % conf->smallest->size ? 1 : 0);
printk("raid0 : nb_zone is %ld.\n", nb_zone);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)