else if (cnset(dev)) printf("%s console not present\n", cmd.argv[1]);
else { printf("switching console to %s\n", cmd.argv[1]); if (cnset(dev)) printf("%s console not present\n", cmd.argv[1]); }
Xtty(){	dev_t dev;	if (cmd.argc == 1)		printf(ttyname(0));	else {		dev = ttydev(cmd.argv[1]);		if (dev == NODEV)			printf("%s not a console device\n", cmd.argv[1]);		else if (cnset(dev))			printf("%s console not present\n", cmd.argv[1]);	}	return 0;}