mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-07 16:01:34 +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/trunk@4680 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
8901084a95
commit
e814a5931b
1 file changed
+1
-1
+1
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user