f3probe: improve messages to users

This commit is contained in:
Michel Machado 2014-12-18 08:34:17 -03:00
parent 263ea4f68e
commit 919451abb9
2 changed files with 3 additions and 2 deletions

View File

@ -405,7 +405,7 @@ static int test_device(struct args *args)
assert(!gettimeofday(&t2, NULL)); assert(!gettimeofday(&t2, NULL));
if (!args->debug && args->reset_type == RT_MANUAL_USB) { if (!args->debug && args->reset_type == RT_MANUAL_USB) {
printf("CAUTION\tCAUTION\tCAUTION\n"); printf("CAUTION\t\tCAUTION\t\tCAUTION\n");
printf("No more resets are needed, so do not unplug the drive\n"); printf("No more resets are needed, so do not unplug the drive\n");
fflush(stdout); fflush(stdout);
} }

View File

@ -602,7 +602,8 @@ struct device *create_block_device(const char *filename, int block_order,
assert(disk_dev); assert(disk_dev);
s = udev_device_get_devnode(disk_dev); s = udev_device_get_devnode(disk_dev);
fprintf(stderr, "Device `%s' is a partition of disk device `%s'.\n" fprintf(stderr, "Device `%s' is a partition of disk device `%s'.\n"
"You can run this program as follows:\nf3probe %s\n", "You must run f3probe on the disk device as follows:\n"
"f3probe %s\n",
filename, s, s); filename, s, s);
udev_device_unref(disk_dev); udev_device_unref(disk_dev);
goto fd_dev; goto fd_dev;