Hi,

I ran across a warning in libpfm when compiling in 32-bit mode, which stopped the build of PAPI. It's a simple problem with a printf format specifier and I've attached a patch to fix it. It should compile correctly in 64-bit mode too.


--
Regards,

- Corey

Corey Ashford
Software Engineer
IBM Linux Technology Center, Linux Toolchain
Beaverton, OR
503-578-3507
cjash...@us.ibm.com
This fixes a warning in self_smpl.c when compiling in 32-bit mode.

Signed off by: Corey Ashford <cjash...@us.ibm.com>
---
Index: libpfm/examples_v2.x/self_smpl.c
===================================================================
--- libpfm.orig/examples_v2.x/self_smpl.c       2009-06-16 16:28:39.000000000 
-0700
+++ libpfm/examples_v2.x/self_smpl.c    2009-06-16 16:29:34.000000000 -0700
@@ -107,7 +107,7 @@
                /*
                 * print entry header
                 */
-               printf("Entry %ld PID:%d TID:%d CPU:%d STAMP:0x%"PRIx64" 
IIP:0x%016"PRIx64"\n",
+               printf("Entry %"PRId64" PID:%d TID:%d CPU:%d STAMP:0x%"PRIx64" 
IIP:0x%016"PRIx64"\n",
                        smpl_entry++,
                        ent->tgid,
                        ent->pid,
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to