]> xenbits.xensource.com Git - xen.git/commitdiff
tools: print xm deprecation warning to stderr
authorIan Campbell <ian.campbell@citrix.com>
Wed, 18 Sep 2013 20:27:19 +0000 (21:27 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 19 Sep 2013 15:25:54 +0000 (16:25 +0100)
To avoid confusing anything which is parsing the output.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
tools/python/xen/xm/xm

index 458f219e10aa9fecf31bd8585365250393c3afdc..6a3f54555aacc9baaf03e96cd91459321ab77fc6 100755 (executable)
@@ -4,10 +4,10 @@ import sys, os.path
 
 from xen.xm import main
 
-print("WARNING: xend/xm is deprecated.")
+print >>sys.stderr, ("WARNING: xend/xm is deprecated.")
 
 if not os.path.exists("/tmp/xm-deprecation-long-warning"):
-    print("""
+    print >>sys.stderr, ("""
 xend is deprecated and scheduled for removal. Please migrate to another
 toolstack ASAP.