From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH] xenalyze: use correct sizeof argument when counting extra_data Date: Thu, 16 Dec 2010 11:35:45 +0100 Message-ID: <20101216103545.GA18544@aepfle.de> References: <20101214174620.GA19442@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20101214174620.GA19442@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org tracedata are units of u32, so make sure the sizeof() gets the correct argument. Signed-off-by: Olaf Hering --- 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; }