sprintf(path, module, ver.release);
modprobe[1] = path;
execvp(modprobe[0], modprobe);
- ERROR("Can't exec %s\n", modprobe[0]);
+ ERROR("Can't exec %s: %m\n", modprobe[0]);
exit(-1);
}
if (pid <= 0) {
- ERROR("Can't exec %s\n", modprobe[0]);
+ ERROR("Can't exec %s: %m\n", modprobe[0]);
return -1;
} else {
waitpid(pid, NULL, 0);
pid = fork();
if (!pid) {
execvp(mkfs[0], mkfs);
- ERROR("Can't exec %s\n", mkfs[0]);
+ ERROR("Can't exec %s: %m\n", mkfs[0]);
exit(-1);
} else if (pid <= 0) {
- ERROR("Can't exec %s\n", mkfs[0]);
+ ERROR("Can't exec %s: %m\n", mkfs[0]);
return -1;
} else {
waitpid(pid, NULL, 0);