All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Tracing] Compilation failure
@ 2010-08-09  8:56 Prerna Saxena
  2010-08-09  9:35 ` [Qemu-devel] " Stefan Hajnoczi
  2010-08-09 13:35 ` [Qemu-devel] [PATCH] trace: Make trace record fields 64-bit Stefan Hajnoczi
  0 siblings, 2 replies; 6+ messages in thread
From: Prerna Saxena @ 2010-08-09  8:56 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel

Hi Stefan,
I think this needs to be resolved.

   CC    trace.o
   CC    simpletrace.o
cc1: warnings being treated as errors
/home/prerna/qemu-testing/git/qemu/simpletrace.c: In function 
‘write_header’:
/home/prerna/qemu-testing/git/qemu/simpletrace.c:46: error: integer 
constant is too large for ‘long’ type
/home/prerna/qemu-testing/git/qemu/simpletrace.c:46: error: large 
integer implicitly truncated to unsigned type
make: *** [simpletrace.o] Error 1

The error arises due to :
TraceRecord header = {
         .event = -1UL, /* max avoids conflicting with TraceEventIDs */
         .timestamp_ns = 0xf2b177cb0aa429b4, /* magic number */
			^^^^^^^^ error.

Also, it would be better to #define the magic number to some macro, and 
use that instead of using the constant directly.

Regards,
-- 
Prerna Saxena

Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-08-11 11:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-09  8:56 [Qemu-devel] [Tracing] Compilation failure Prerna Saxena
2010-08-09  9:35 ` [Qemu-devel] " Stefan Hajnoczi
2010-08-09 13:35 ` [Qemu-devel] [PATCH] trace: Make trace record fields 64-bit Stefan Hajnoczi
2010-08-11  6:03   ` Prerna Saxena
2010-08-11  9:37     ` malc
2010-08-11 11:13     ` [Qemu-devel] [PATCH v2] " Prerna Saxena

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.