Skip to content

Commit 8e5892e

Browse files
committed
Make it easier to see what the error was on failed module load.
1 parent 59d3262 commit 8e5892e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mininet/moduledeps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def moduleDeps( subtract=None, add=None ):
3737
info( '*** Removing ' + mod + '\n' )
3838
rmmodOutput = rmmod( mod )
3939
if rmmodOutput:
40-
error( 'Error removing ' + mod + ': %s\n' % rmmodOutput )
40+
error( 'Error removing ' + mod + ': <%s>\n' % rmmodOutput )
4141
exit( 1 )
4242
if mod in lsmod():
4343
error( 'Failed to remove ' + mod + '; still there!\n' )
@@ -48,7 +48,7 @@ def moduleDeps( subtract=None, add=None ):
4848
modprobeOutput = modprobe( mod )
4949
if modprobeOutput:
5050
error( 'Error inserting ' + mod + '- is it installed?\n' +
51-
'Error was: %s\n' % modprobeOutput )
51+
'Error was: <%s>\n' % modprobeOutput )
5252
if mod not in lsmod():
5353
error( 'Failed to insert ' + mod + '\n' )
5454
exit( 1 )

0 commit comments

Comments
 (0)