WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: [PATCH 2/6] trace: fix T_INFO_FIRST_OFFSET

>>> On 30.06.10 at 18:12, George Dunlap <George.Dunlap@xxxxxxxxxxxxx> wrote:
>+    offset_in_bytes = ((char *)&((struct t_info 
>*)(NULL))->mfn_offset[NR_CPUS]) - (char *)(NULL);

Why can't this just be offsetof(struct t_info, mfn_offset[NR_CPUS])?

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>