From 8e5892e2fd5d3560ed4ffe3e8f11cfdb393865bf Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Tue, 17 Aug 2010 22:35:24 -0700 Subject: [PATCH] Make it easier to see what the error was on failed module load. --- mininet/moduledeps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mininet/moduledeps.py b/mininet/moduledeps.py index 6f185a0..f57c462 100644 --- a/mininet/moduledeps.py +++ b/mininet/moduledeps.py @@ -37,7 +37,7 @@ def moduleDeps( subtract=None, add=None ): info( '*** Removing ' + mod + '\n' ) rmmodOutput = rmmod( mod ) if rmmodOutput: - error( 'Error removing ' + mod + ': %s\n' % rmmodOutput ) + error( 'Error removing ' + mod + ': <%s>\n' % rmmodOutput ) exit( 1 ) if mod in lsmod(): error( 'Failed to remove ' + mod + '; still there!\n' ) @@ -48,7 +48,7 @@ def moduleDeps( subtract=None, add=None ): modprobeOutput = modprobe( mod ) if modprobeOutput: error( 'Error inserting ' + mod + '- is it installed?\n' + - 'Error was: %s\n' % modprobeOutput ) + 'Error was: <%s>\n' % modprobeOutput ) if mod not in lsmod(): error( 'Failed to insert ' + mod + '\n' ) exit( 1 )