Changeset 1429

Show
Ignore:
Timestamp:
11/14/08 15:15:00 (12 years ago)
Author:
arnonym
Message:

Fix #158: Make the error more verbose and list some ways to fix it.

Needs a bigger buffer size for debug/error messages.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/config.h.in

    r1373 r1429  
    5050#define DEBUG_USE_MESSAGE_BUFFER             1 
    5151// max message length in the debug messagebuffer 
    52 #define DEBUG_MAX_MESSAGE_LENGTH          512 
     52#define DEBUG_MAX_MESSAGE_LENGTH          1024 
    5353// number of messages in the debug messagebuffer (power of two) 
    5454#define DEBUG_MB_BUFFERS                  1024 
  • branches/libffado-2.0/src/libieee1394/ieee1394service.cpp

    r1409 r1429  
    142142} 
    143143 
     144#define DEVICEFAILTEXT "Could not get libraw1394 handle.\n\ 
     145This usually means:\n\ 
     146 a) The device-node /dev/raw1394 doesn't exists because you don't have a\n\ 
     147    (recognized) firewire controller.\n \ 
     148 b) The modules needed aren't loaded. This is not in the scope of ffado but of\n\ 
     149    your distribution, so if you have a firewire controller that should be\n\ 
     150    supported and the modules aren't loaded, file a bug with your distributions\n\ 
     151    bug tracker.\n \ 
     152 c) You don't have permissions to access /dev/raw1394. 'ls -l /dev/raw1394'\n\ 
     153    shows the device-node with its permissions, make sure you belong to the\n\ 
     154    right group and the group is allowed to access the device.\n" 
     155 
    144156int 
    145157Ieee1394Service::detectNbPorts() 
     
    147159    raw1394handle_t tmp_handle = raw1394_new_handle(); 
    148160    if ( tmp_handle == NULL ) { 
    149         debugError("Could not get libraw1394 handle.\n"); 
     161        debugError(DEVICEFAILTEXT); 
    150162        return -1; 
    151163    }