Changeset 2737

Show
Ignore:
Timestamp:
01/31/18 00:10:14 (3 weeks ago)
Author:
jwoithe
Message:

[PATCH 01/13] python tools: delete trailing whitespaces.

From Nicolas Boulenguez.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/tools/ffado-diag-static

    r2729 r2737  
    8989    print("   dbus-1 ............ %s" % get_package_version("dbus-1")) 
    9090    print("     flags ........... %s" % get_package_flags("dbus-1")) 
    91  
  • trunk/libffado/support/tools/ffado-diag.in

    r2736 r2737  
    7070    print "=== CHECK ===" 
    7171    print " Base system..." 
    72      
     72 
    7373    # check kernel 
    7474    kernel_version = get_kernel_version() 
     
    8989    newstack_active = check_1394newstack_active() 
    9090    newstack_statically_linked = not check_1394newstack_loaded() and check_1394newstack_linked() 
    91      
     91 
    9292    print "  old 1394 stack present.... " + str(oldstack_present) 
    9393    print "  old 1394 stack loaded..... " + str(oldstack_loaded) 
     
    9696    print "  new 1394 stack loaded..... " + str(newstack_loaded) 
    9797    print "  new 1394 stack active..... " + str(newstack_active) 
    98      
     98 
    9999    # check /dev/raw1394 node presence 
    100100    devnode_present = check_1394oldstack_devnode_present() 
     
    146146    # libraw 
    147147 
    148     print " uname -a..."  
     148    print " uname -a..." 
    149149    print "   " + run_command("uname -a") 
    150      
     150 
    151151    print " Hardware..." 
    152152    # check host controller 
     
    161161    print " Configuration..." 
    162162    # check RT settings 
    163      
    164     # check IRQ settings  
     163 
     164    # check IRQ settings 
    165165    print "  IRQ information" 
    166166    info = IRQInfo() 
     
    171171    print "" 
    172172    print "=== REPORT ===" 
    173      
     173 
    174174    help = HelpStrings() 
    175      
     175 
    176176    # do the interpretation of the tests 
    177177    print "FireWire kernel drivers:" 
     
    203203        else: 
    204204            print "[PASS] /dev/raw1394 node present and accessible." 
    205      
    206      
    207      
  • trunk/libffado/support/tools/ffado-sandbox-install.py

    r2680 r2737  
    1919 
    2020# 
    21 # A script to install FFADO in a 'sandbox', i.e. without changing the  
     21# A script to install FFADO in a 'sandbox', i.e. without changing the 
    2222# system installation. 
    2323# 
     24 
    2425import os 
    2526 
     
    146147================= 
    147148 
    148 The sandbox directory is the directory where all built files are  
     149The sandbox directory is the directory where all built files are 
    149150installed into. It should be writable by your user, and will 
    150151contain the evaluation binaries if this tool is successful. If 
     
    288289ffado_log = "%s/ffadobuild.log" % build_dir 
    289290ffado_scons_options = "-j2" # TODO: interactive config of the build 
    290 os.system('echo "" > %s' % ffado_log)  
     291os.system('echo "" > %s' % ffado_log) 
    291292 
    292293# configure FFADO 
     
    312313os.chdir("%s/jack/" % build_dir) 
    313314jack_log = "%s/jackbuild.log" % build_dir 
    314 os.system('echo "" > %s' % jack_log)  
     315os.system('echo "" > %s' % jack_log) 
    315316 
    316317print( "Building Jack..." ) 
  • trunk/libffado/support/tools/ffado_diag_helpers.py

    r2697 r2737  
    158158    return ver[0] 
    159159 
    160  
    161160def list_host_controllers(): 
    162161    lspci_cmd = get_command_path("lspci") 
  • trunk/libffado/support/tools/helpstrings.py

    r2680 r2737  
    2323        strings = {} 
    2424        strings['MODULES_OLD_STACK_NOT_INSTALLED']=""" 
    25 FireWire kernel stack not present. Please compile the kernel with  
     25FireWire kernel stack not present. Please compile the kernel with 
    2626FireWire support. 
    2727""" 
    2828        strings['MODULES_BOTH_STACKS_LOADED']=""" 
    29 Both old and new FireWire kernel modules are loaded, your system  
     29Both old and new FireWire kernel modules are loaded, your system 
    3030configuration is bogus. 
    3131""" 
    3232        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  
     33The new FireWire kernel stack is loaded. 
     34If running a kernel earlier than 2.6.37 and problems are experienced, either 
     35try with the old Firewire kernel stack or upgrade to a newer kernel 
    3636(preferrably 2.6.37 or later). 
    3737""" 
    3838        strings['MODULES_OLD_STACK_NOT_LOADED']=""" 
    39 FireWire kernel module(s) not found.  
     39FireWire kernel module(s) not found. 
    4040Please ensure that the raw1394 module is loaded. 
    4141""" 
    4242        strings['DEVNODE_OLD_STACK_NOT_PRESENT']=""" 
    43 /dev/raw1394 device node not present.  
     43/dev/raw1394 device node not present. 
    4444Please fix your udev configuration or add it as a static node. 
    4545""" 
    4646        strings['DEVNODE_OLD_STACK_NO_PERMISSION']=""" 
    47 Not enough permissions to access /dev/raw1394 device.  
     47Not enough permissions to access /dev/raw1394 device. 
    4848Please fix your udev configuration, the node permissions or 
    4949the user/group permissions. 
     
    5757    def show(self, sid): 
    5858        print( self.get(sid) ) 
    59      
  • trunk/libffado/support/tools/listirqinfo.py

    r2734 r2737  
    6767        # get PID info 
    6868        (exitstatus, outtext) = getstatusoutput('ps -eLo pid,cmd,class,rtprio | grep IRQ') 
    69          
     69 
    7070        rawstr = r"""([0-9]+) +\[IRQ-([0-9]+)\] +([A-Z]{2}) +([-0-9]+)""" 
    7171        compile_obj = re.compile(rawstr) 
    72          
     72 
    7373        IRQs = {} 
    7474        for line in outtext.splitlines(): 
     
    8484                    irq.scheduling_priority = None 
    8585                IRQs[irq.number] = irq 
    86          
     86 
    8787        (exitstatus, outtext) = getstatusoutput('ps -eLo pid,cmd,class,rtprio | grep softirq') 
    88          
     88 
    8989        rawstr = r"""([0-9]+) +\[softirq-(.*)\] +([A-Z]+) +([-0-9]+)""" 
    9090        compile_obj = re.compile(rawstr) 
    91          
     91 
    9292        softIRQs = {} 
    9393        for line in outtext.splitlines(): 
     
    104104                    irq.scheduling_priority = None 
    105105                softIRQs[irq.name] = irq 
    106          
     106 
    107107        # get irq info 
    108108        (exitstatus, outtext) = getstatusoutput('cat /proc/interrupts') 
     
    112112        str_cpu = "([0-9]+) +" 
    113113        str1="([\w\-]+) +([\w\-, :]+)" 
    114          
     114 
    115115        rawstr = str0; 
    116116        for i in range(nb_cpus): 
     
    118118        rawstr += str1 
    119119        compile_obj = re.compile(rawstr) 
    120          
     120 
    121121        for line in outtext.splitlines(): 
    122122            match_obj = compile_obj.search(line) 
     
    126126                    IRQs[irq_number] = IRQ() 
    127127                    IRQs[irq_number].number = irq_number 
    128                  
     128 
    129129                irq = IRQs[irq_number] 
    130130                cpu_counts = [] 
     
    136136                for driver in drivers: 
    137137                    irq.drivers.append(driver.strip()) 
    138          
     138 
    139139                IRQs[irq.number] = irq 
    140140 
     
    165165    print( "(C) 2008 Pieter Palmers" ) 
    166166    print( "" ) 
    167      
     167 
    168168    info = IRQInfo() 
    169169 
    170170    info.load() 
    171171    print( str(info) ) 
    172      
     172 
    173173    print( "" )