Show
Ignore:
Timestamp:
06/25/07 15:58:55 (7 years ago)
Author:
khali
Message:

Return with an explicit error code/message if sysfs isn't mounted.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/main.c

    r4424 r4464  
    238238  open_config_file(config_file_name); 
    239239  if ((res = sensors_init(config_file))) { 
    240     fprintf(stderr,"%s\n",sensors_strerror(res)); 
    241     if (res == -SENSORS_ERR_PROC) 
    242       fprintf(stderr, 
    243               "Kernel interface access error\n" 
    244               "For 2.6 kernels, make sure you have mounted sysfs and libsensors\n" 
    245               "was compiled with sysfs support!\n"); 
     240    fprintf(stderr, "sensors_init: %s\n", sensors_strerror(res)); 
    246241    exit(1); 
    247242  }