Commit ac4178b3 authored by Daniel Graziotin's avatar Daniel Graziotin

I must be drunk or something. Fixes #22

parent d9aee40c
......@@ -99,6 +99,7 @@ int main(int argc, char *argv[])
if (!(fread (buf, 1, sizeof (buf), fd) > 0)) {
syslog(LOG_INFO, "Mbpfan needs coretemp module. Please load it and run mbpfan again. Exiting.");
printf("Mbpfan needs coretemp module. Please load it and run mbpfan again. Exiting.\n");
exit(0);
}
fd = popen("lsmod | grep applesmc", "r");
......@@ -106,6 +107,7 @@ int main(int argc, char *argv[])
if (!(fread (buf, 1, sizeof (buf), fd) > 0)) {
syslog(LOG_INFO, "Mbpfan needs applesmc module. Please load it and run mbpfan again. Exiting.");
printf("Mbpfan needs applescm module. Please load it and run mbpfan again. Exiting.\n");
exit(0);
}
// pointer to mbpfan() function in mbpfan.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment