x86/hvm: fix extra size passed to __trace_var()
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 20 Sep 2010 17:53:18 +0000 (18:53 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 20 Sep 2010 17:53:18 +0000 (18:53 +0100)
While removing the casts on the last arguments to __trace_var() I
noticed the bogus addition of 1 here.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/include/asm-x86/hvm/trace.h

index 57dacaf6192168d75d1467671b4cc0de2b1f80ce..2245b7ab1d1037de36c984bc28f55da748308283 100644 (file)
@@ -72,7 +72,7 @@
             _d.d[4]=(d5);                                               \
             _d.d[5]=(d6);                                               \
             __trace_var(TRC_HVM_ ## evt, cycles,                        \
-                        sizeof(u32)*count+1, &_d);                      \
+                        sizeof(*_d.d) * count, &_d);                    \
         }                                                               \
     } while(0)