qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [Tracing] Compilation failure


From: Prerna Saxena
Subject: [Qemu-devel] [Tracing] Compilation failure
Date: Mon, 09 Aug 2010 14:26:05 +0530
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc11 Thunderbird/3.0.4

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]