Changeset 1441

Show
Ignore:
Timestamp:
11/16/08 15:21:53 (12 years ago)
Author:
arnonym
Message:

Forward-port r1429: Make the error more verbose

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libieee1394/ieee1394service.cpp

    r1348 r1441  
    137137} 
    138138 
     139#define DEVICEFAILTEXT "Could not get libraw1394 handle.\n\ 
     140This usually means:\n\ 
     141 a) The device-node /dev/raw1394 doesn't exists because you don't have a\n\ 
     142    (recognized) firewire controller.\n \ 
     143 b) The modules needed aren't loaded. This is not in the scope of ffado but of\n\ 
     144    your distribution, so if you have a firewire controller that should be\n\ 
     145    supported and the modules aren't loaded, file a bug with your distributions\n\ 
     146    bug tracker.\n \ 
     147 c) You don't have permissions to access /dev/raw1394. 'ls -l /dev/raw1394'\n\ 
     148    shows the device-node with its permissions, make sure you belong to the\n\ 
     149    right group and the group is allowed to access the device.\n" 
     150 
    139151int 
    140152Ieee1394Service::detectNbPorts() 
     
    142154    raw1394handle_t tmp_handle = raw1394_new_handle(); 
    143155    if ( tmp_handle == NULL ) { 
    144         debugError("Could not get libraw1394 handle.\n"); 
     156        debugError(DEVICEFAILTEXT); 
    145157        return -1; 
    146158    }