@@ -405,14 +405,16 @@ static int device_area_is_valid(struct d
return 1;
if (start & (hardsect_size_sectors - 1)) {
- DMWARN("%s: start=%lu not aligned to h/w sector of %s",
- dm_device_name(ti->table->md), start, bdevname(bdev, b));
+ DMWARN("%s: start=%llu not aligned to h/w sector of %s",
+ dm_device_name(ti->table->md),
+ (unsigned long long)start, bdevname(bdev, b));
return 0;
}
if (len & (hardsect_size_sectors - 1)) {
- DMWARN("%s: len=%lu not aligned to h/w sector size %hu of %s",
- dm_device_name(ti->table->md), len,
+ DMWARN("%s: len=%llu not aligned to h/w sector size %hu of %s",
+ dm_device_name(ti->table->md),
+ (unsigned long long)len,
ti->limits.hardsect_size, bdevname(bdev, b));
return 0;
}