diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 6742ad4ff..0f905fd68 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.83 ================================== + Consistently report on stderr when device is not found for dmsetup info. Skip race errors when non-udev dmsetup build runs on udev-enabled system. Skip error message when holders are not present in sysfs. Use __linux__ instead of linux define to make libdevmapper.h C compliant. diff --git a/tools/dmsetup.c b/tools/dmsetup.c index a0ee23ee5..e25d109a1 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -461,7 +461,7 @@ static void _display_info_long(struct dm_task *dmt, struct dm_info *info) uint32_t read_ahead; if (!info->exists) { - printf("Device does not exist.\n"); + fprintf(stderr, "Device does not exist.\n"); return; }