From: Gianni Tedesco Subject: Re: [PATCH, v3]: xl: randomly generate UUID's Date: Fri, 27 Aug 2010 14:56:35 +0100 Message-ID: <1282917395.3731.107.camel@qabil.uk.xensource.com> References: <1282317321.3731.70.camel@qabil.uk.xensource.com> <1282761505.3731.98.camel@qabil.uk.xensource.com> <201008261402.36523.Christoph.Egger@amd.com> <201008261741.48160.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201008261741.48160.Christoph.Egger@amd.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: Christoph Egger Cc: Ian, "xen-devel@lists.xensource.com" , Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Thu, 2010-08-26 at 16:41 +0100, Christoph Egger wrote: > @@ -2219,8 +2224,11 @@ static void list_domains(int verbose, co > info[i].dying ? 'd' : '-', > ((float)info[i].cpu_time / 1e9)); > free(domname); > - if (verbose) > - printf(" " LIBXL_UUID_FMT, > LIBXL_UUID_BYTES(info[i].uuid)); > + if (verbose) { > + char buf[LIBXL_UUID_LEN]; > + libxl_uuido_string(&info[i].uuid, buf, sizeof(buf)); > + printf(" %s", buf); > + } > putchar('\n'); > } > } Really? There's no way to keep the macro approach and get at the thing like an array of bytes? If that's the case then how can libxl_uuid_bytearray() that I introduced work correctly? I cannot tell because your patch does not include libxl_uuid.h ... Also I am not sure about the ocaml wrapper stuff but I will look in to it for next time. I have to re-spin the patch to detect UUID parse errors anyway.