Fix error message when a chip is specified on the command line

with no prefix and that chip isn't found.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4680 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-08-17 11:30:25 +00:00
1 parent 8901084a95
commit e814a5931b
1 file changed
+1 -1
+1 -1
View File
@@ -247,7 +247,7 @@ int main (int argc, char *argv[])
sensors_cleanup();
exit(error);
} else {
if(chips[0].prefix == SENSORS_CHIP_NAME_PREFIX_ANY)
if (optind == argc) /* No chip name on command line */
fprintf(stderr,
"No sensors found!\n"
"Make sure you loaded all the kernel drivers you need.\n"