ia64/xen-unstable

view buildconfigs/src.hg-clone @ 15852:7dba4441bf92

xend: Fix error message for xm trigger command.

When I tested xm trigger command with a wrong argument, I saw the
following error message.

# xm trigger vm1 xyz
Error: __init__() takes exactly 2 arguments (3 given)
Usage: xm trigger <Domain> <nmi|reset|init> [<VCPU>]

Send a trigger to a domain.

This patch fixes the error message as follows.

# xm trigger vm1 xyz
Error: Invalid trigger: xyz
Usage: xm trigger <Domain> <nmi|reset|init> [<VCPU>]

Send a trigger to a domain.

The type of "TRIGGER_TYPE" is dictionary. domain_send_trigger()
refers to the keys of "TRIGGER_TYPE" without using keys() currently.
This patch adds keys() there.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Fri Sep 07 11:24:28 2007 +0100 (2007-09-07)
parents a1b6555a37bf
children 923b8dbb0fed
line source
1 # Mercurial
2 HG ?= hg
4 LINUX_SRCDIR ?= linux-$(LINUX_VER)-xen.hg
6 # Repository to clone.
7 XEN_LINUX_HGREPO ?= $$(sh buildconfigs/select-repository $(LINUX_SRCDIR) $(LINUX_SRC_PATH))
9 # Set XEN_LINUX_HGREV to update to a particlar revision.
10 XEN_LINUX_HGREV ?= tip
12 $(LINUX_SRCDIR)/.valid-src: $(__XEN_LINUX_UPDATE)
13 set -e ; \
14 if [ ! -e $(LINUX_SRCDIR)/.hg ] ; then \
15 __repo=$(XEN_LINUX_HGREPO) ; \
16 if [ -d $${__repo} ] ; then \
17 echo "Linking $${__repo} to $(LINUX_SRCDIR)." ; \
18 ln -s $${__repo} $(LINUX_SRCDIR) ; \
19 else \
20 echo "Cloning $${__repo} to $(LINUX_SRCDIR)." ; \
21 $(HG) clone $${__repo#file://} $(LINUX_SRCDIR) ; \
22 fi ; \
23 else \
24 __parent=$$($(HG) -R $(LINUX_SRCDIR) path default) ; \
25 echo "Pulling changes from $${__parent} into $(LINUX_SRCDIR)." ; \
26 $(HG) -R $(LINUX_SRCDIR) pull $${__parent} ; \
27 fi
28 if [ -n "$(XEN_LINUX_HGREV)" ] ; then \
29 echo "Updating $(LINUX_SRCDIR) to revision $(XEN_LINUX_HGREV)." ; \
30 ( cd $(LINUX_SRCDIR) && $(HG) update $(XEN_LINUX_HGREV) ); \
31 fi
32 touch $@