Skip to contentSkip to conversation

xenbaked.c: fix "bad domain id: 32"

PATCH New KUWAMURA Shin'ya 1 participant 1 message Jul 21, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenbaked.c: fix "bad domain id: 32"

Hi,

This patch fixes a problem that xenmon.py gets the message "bad domain
id: 32" when a domain of domain ID 32 is running.

This only removes checking the maximun of domain ID because NDOMAINS does not mean the maximum of domain ID.

Thanks,

Signature · 1 line
  KUWAMURA Shin'ya
tools/xenmon/xenbaked.c +1 -1
diff -r bbabdebc54ad tools/xenmon/xenbaked.c
@@ -766,7 +766,7 @@ int indexof(int domid)
   int xc_handle, ndomains;
   extern void qos_kill_thread(int domid);
   
-  if (domid < 0 || domid >= NDOMAINS) {	// shouldn't happen
+  if (domid < 0) {	// shouldn't happen
     if (domid != IDLE_DOMAIN_ID) {
       printf("bad domain id: %d\r\n", domid);
       return 0;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel