root/trunk/libffado/support/tools/helpstrings.py

Revision 2053, 1.9 kB (checked in by jwoithe, 12 years ago)

ffado-diag: reword the comment displayed if the new firewire kernel stack is loaded; since kernels these days only have the new stack it's a little pointless suggesting people try the old one. Besides, using the new stack isn't really experimental anymore.

Line 
1 #
2 # Copyright (C) 2008 Pieter Palmers
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, version 3 of the License.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
15 #
16
17 #
18 # Help strings for ffado problems
19 #
20
21 class HelpStrings:
22     def __init__(self):
23         strings = {}
24         strings['MODULES_OLD_STACK_NOT_INSTALLED']="""
25 FireWire kernel stack not present. Please compile the kernel with
26 FireWire support.
27 """
28         strings['MODULES_BOTH_STACKS_LOADED']="""
29 Both old and new FireWire kernel modules are loaded, your system
30 configuration is bogus.
31 """
32         strings['MODULES_NEW_STACK_LOADED']="""
33 The new FireWire kernel stack is loaded.
34 If running a kernel earlier than 2.6.37 and problems are experienced, either
35 try with the old Firewire kernel stack or upgrade to a newer kernel
36 (preferrably 2.6.37 or later).
37 """
38         strings['MODULES_OLD_STACK_NOT_LOADED']="""
39 FireWire kernel module(s) not found.
40 Please ensure that the raw1394 module is loaded.
41 """
42         strings['DEVNODE_OLD_STACK_NOT_PRESENT']="""
43 /dev/raw1394 device node not present.
44 Please fix your udev configuration or add it as a static node.
45 """
46         strings['DEVNODE_OLD_STACK_NO_PERMISSION']="""
47 Not enough permissions to access /dev/raw1394 device.
48 Please fix your udev configuration, the node permissions or
49 the user/group permissions.
50 """
51
52         self.strings=strings
53
54     def get(self, sid):
55         return self.strings[sid]
56
57     def show(self, sid):
58         print self.get(sid)
59    
Note: See TracBrowser for help on using the browser.