mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
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/branches/lm-sensors-3.0.0@4681 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -237,7 +237,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"
|
||||
|
Reference in New Issue
Block a user