From: Keir Fraser Subject: Re: size_t and printk and Xen Date: Sun, 12 Oct 2008 18:57:33 +0100 Message-ID: References: <3924720e-82a1-4429-9951-14731d76b5a2@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3924720e-82a1-4429-9951-14731d76b5a2@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org On 12/10/08 18:44, "Dan Magenheimer" wrote: >> I'm no particular fan of size_t in hypervisor interfaces >> though. So, for >> example, switching xmalloc() interfaces to use unsigned int >> instead would be >> fine by me, and this would sidestep the issue perhaps? > > I think C99 size_t may have compile-time type-checking uses so > I'd be hesitant to remove it entirely. Can you give a concrete example of how it helps us to use it within the xmalloc interfaces? As far as I'm aware it's not useful at all, but I could certainly be wrong as this aspect of the C spec is not something I've ever really investigated. -- Keir