From: Keir Fraser Subject: Re: [PATCH] xenmon: remove magic number "31" (the idle domain) Date: Tue, 4 Jul 2006 08:06:57 +0100 Message-ID: <2a7a55c7de2d697c126797c1fb982850@cl.cam.ac.uk> References: <20060704.143731.74693697.kuwa@jp.fujitsu.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060704.143731.74693697.kuwa@jp.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: KUWAMURA Shin'ya Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 4 Jul 2006, at 06:37, KUWAMURA Shin'ya wrote: > This patch removes the magic number "31" for readability. The number > "31" means the idle domain ID. > > In detail: > - display the idle domain ID with "Idle" instead of "31" > - write to the file "log-idle.log" instead of "log-dom31.log". > > Signed-off-by: KUWAMURA Shin'ya Where does the magic number '31' come from in the first place? That's not the number Xen uses. It could conflict with the domain id of a non-idle domain. -- Keir