{
struct mount *m;
char *device;
+ char *mp;
if (!pr)
return -1;
if (hotplug && !auto_mount)
return -1;
- if (find_mount_point(pr->dev)) {
- ULOG_ERR("%s is already mounted\n", pr->dev);
+ mp = find_mount_point(pr->dev);
+ if (mp) {
+ ULOG_ERR("%s is already mounted on %s\n", pr->dev, mp);
return -1;
}