Skip to content

Commit ce9d642

Browse files
committed
devfs: print details of mounted partition
Print information about the partition and offset child device is created for. This is very helpful to understand the process of mounting the filesystems. Signed-off-by: Waldemar Kozaczuk <[email protected]>
1 parent add6b3d commit ce9d642

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/devfs/device.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ void read_partition_table(struct device *dev)
142142
new_dev->max_io_size = dev->max_io_size;
143143
new_dev->private_data = dev->private_data;
144144
device_set_softc(new_dev, device_get_softc(dev));
145+
146+
kprintf("devfs: created device %s for a partition at offset:%ld with size:%ld\n", dev_name, new_dev->offset, new_dev->size);
145147
}
146148

147149
sched_unlock();

0 commit comments

Comments
 (0)