[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xenalyze: use correct sizeof argument when counting extra_data



tracedata are units of u32, so make sure the sizeof() gets the correct
argument.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

--- xenalyze.hg.orig/xenalyze.c
+++ xenalyze.hg/xenalyze.c
@@ -3588,12 +3588,12 @@ void hvm_mmio_assist_process(struct reco
     if(mevt.x64) {
         e->gpa = r->x64.gpa;
         e->data = r->x64.data;
-        if(ri->extra_words*(sizeof(unsigned long))==sizeof(r->x64))
+        if(ri->extra_words*(sizeof(unsigned int))==sizeof(r->x64))
             e->mmio_data_valid=1;
     } else {
         e->gpa = r->x32.gpa;
         e->data = r->x32.data;
-        if(ri->extra_words*(sizeof(unsigned long))==sizeof(r->x32))
+        if(ri->extra_words*(sizeof(unsigned int))==sizeof(r->x32))
             e->mmio_data_valid=1;
     }
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.