Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#6273 closed bug (fixed)

TRACE_VM_PAGE breaks build

Reported by: lucian Owned by: bonefish
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

On my gcc4 config (which closely follows the ReadMe and ReadMe.cross-compile guides) warnings break the build.

When defining TRACE_VM_PAGE the compiler issues warnings about different types in dprintf()'s formatting string and the parameters. For example it cannot map page_num_t back to unsigned long. The warning is treated as an error an build fails.

Attachments (1)

vm_page-add-casts-to-debug-messages-to-fix-compile-err.patch (1.3 KB ) - added by lucian 14 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by lucian, 14 years ago

patch: 01

comment:2 by anevilyak, 14 years ago

Owner: changed from axeld to bonefish
Status: newassigned

comment:3 by bonefish, 14 years ago

Resolution: fixed
Status: assignedclosed

Thanks! The better solution is to use the B_PRI* macros, though. Done in hrev37411.

comment:4 by lucian, 14 years ago

I wanted to suggest something like this. Didn't know these macros existed. Thanks :)

Note: See TracTickets for help on using tickets.