ia64/xen-unstable

view buildconfigs/Rules.mk @ 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 1712c62b913c
children
line source
2 include Config.mk
4 export DESTDIR
6 ALLKERNELS = $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.*))
8 %-install:
9 $(MAKE) -f buildconfigs/mk.$* build
11 %-dist: DESTDIR=$(DISTDIR)/install
12 %-dist: %-install
13 @: # do nothing
15 # Legacy dist target
16 %-build: %-dist
17 @: # do nothing
19 %-prep: DESTDIR=$(DISTDIR)/install
20 %-prep:
21 $(MAKE) -f buildconfigs/mk.$* prep
23 %-config: DESTDIR=$(DISTDIR)/install
24 %-config:
25 $(MAKE) -f buildconfigs/mk.$* config
27 %-delete:
28 $(MAKE) -f buildconfigs/mk.$* delete
30 %-clean:
31 $(MAKE) -f buildconfigs/mk.$* clean
33 %.patch:
34 $(MAKE) -f buildconfigs/mk.$* $@
36 %-mrproper:
37 $(MAKE) -f buildconfigs/mk.$*-xen mrproper
38 rm -rf pristine-$(*)* ref-$(*)*
39 rm -rf $*-xen.patch
41 # never delete any intermediate files.
42 .SECONDARY: