use stdout instead of stderr for the no-compat API warnings on '--help';
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 22 Jan 2006 19:31:53 +0000 (19:31 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 22 Jan 2006 19:31:53 +0000 (19:31 +0000)
else, 'make distcheck' will fail

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2279 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/capchroot.c
util-vserver/src/chcontext.c
util-vserver/src/reducecap.c

index dd1dc74..e2feed9 100644 (file)
@@ -68,7 +68,7 @@ showHelp(int fd, char const *cmd, int res)
   VSERVER_DECLARE_CMD(cmd);
 
 #if !defined(VC_ENABLE_API_COMPAT) && !defined(VC_ENABLE_API_LEGACY)
-  WRITE_MSG(2, "ERROR: tools were built without legacy API support; capchroot will not work!\n\n");
+  WRITE_MSG(1, "ERROR: tools were built without legacy API support; capchroot will not work!\n\n");
 #endif
   
   WRITE_MSG(fd, "Usage:  ");
index c63b1eb..1d88b0d 100644 (file)
@@ -97,7 +97,7 @@ showHelp(int fd, char const *cmd, int res)
   VSERVER_DECLARE_CMD(cmd);
 
 #if !defined(VC_ENABLE_API_COMPAT) && !defined(VC_ENABLE_API_LEGACY)
-  WRITE_MSG(2, "ERROR: tools were built without legacy API support; chcontext will not work!\n\n");
+  WRITE_MSG(1, "ERROR: tools were built without legacy API support; chcontext will not work!\n\n");
 #endif
   
   WRITE_MSG(fd, "Usage: ");
index fb936dd..49eda3d 100644 (file)
@@ -144,7 +144,7 @@ static void
 showHelp(int fd, char const *cmd, int res)
 {
 #if !defined(VC_ENABLE_API_COMPAT) && !defined(VC_ENABLE_API_LEGACY)
-  WRITE_MSG(2, "ERROR: tools were built without legacy API support; reducecap will not work!\n\n");
+  WRITE_MSG(1, "ERROR: tools were built without legacy API support; reducecap will not work!\n\n");
 #endif
   
   WRITE_MSG(fd, "Usage:\n  ");