From 35a33fc617dcf06a702002fc73ccb29203aaa863 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Mon, 13 Mar 2017 16:31:17 -0700 Subject: [PATCH] print() -> error() --- mininet/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mininet/util.py b/mininet/util.py index 8140d70..6cccddc 100644 --- a/mininet/util.py +++ b/mininet/util.py @@ -588,7 +588,7 @@ def ensureRoot(): Probably we should only sudo when needed as per Big Switch's patch. """ if os.getuid() != 0: - print( "*** Mininet must run as root." ) + error( '*** Mininet must run as root.\n' ) exit( 1 ) return