cdrom.c: slightly better "wrong hash" message

This should be marginally more readable.
This commit is contained in:
Michael Shigorin 2014-04-19 12:48:01 +04:00
parent 8d2cd5aec8
commit c51df4c834

View File

@ -84,11 +84,11 @@ static enum return_type do_with_device(char * dev_name, char * dev_model)
enum return_type results; enum return_type results;
umount(IMAGE_LOCATION); umount(IMAGE_LOCATION);
if (IS_VERIFICATION) if (IS_VERIFICATION)
snprintf(msg, sizeof(msg), "That ISO (on %s) does not seem like proper %s" snprintf(msg, sizeof(msg), "ISO on /dev/%s does not seem to contain proper %s"
" media: hash verification failed.\nRetry with another one?", dev_name, version); " media:\nhash verification failed.\nTry another media in that drive?", dev_name, version);
else else
snprintf(msg, sizeof(msg), "That ISO does not seem like proper %s" snprintf(msg, sizeof(msg), "That ISO does not seem like proper %s"
" media.\nRetry with another one?", version); " media.\nTry another media in that drive?", version);
results = ask_yes_no(msg); results = ask_yes_no(msg);
if (results == RETURN_OK) if (results == RETURN_OK)
return try_with_device(dev_name, dev_model); return try_with_device(dev_name, dev_model);