ia64/xen-unstable

changeset 11432:ae46cac48659

This patch improves error message of xm console command.

# xm console Domain-0
Can't specify Domain-0

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Ewan Mellor <ewan@xensource.com>
date Tue Sep 05 17:06:01 2006 +0100 (2006-09-05)
parents e76c6d838a44
children cd0396953d1a
files tools/console/client/main.c
line diff
     1.1 --- a/tools/console/client/main.c	Tue Sep 05 16:48:21 2006 +0100
     1.2 +++ b/tools/console/client/main.c	Tue Sep 05 17:06:01 2006 +0100
     1.3 @@ -220,7 +220,8 @@ int main(int argc, char **argv)
     1.4  	   user friendly, we'll bail out here since no data will ever show
     1.5  	   up on domain-0. */
     1.6  	if (domid == 0) {
     1.7 -		err(errno, "Could not read tty from store");
     1.8 +		fprintf(stderr, "Can't specify Domain-0\n");
     1.9 +		exit(EINVAL);
    1.10  	}
    1.11  
    1.12  	/* Wait a little bit for tty to appear.  There is a race