[llvm-commits] [compiler-rt] r145886 - /compiler-rt/trunk/lib/asan/sysinfo/sysinfo.cc

Kostya Serebryany kcc at google.com
Mon Dec 5 17:08:32 PST 2011


Author: kcc
Date: Mon Dec  5 19:08:31 2011
New Revision: 145886

URL: http://llvm.org/viewvc/llvm-project?rev=145886&view=rev
Log:
[asan] remove format warnings in sysinfo/sysinfo.cc

Modified:
    compiler-rt/trunk/lib/asan/sysinfo/sysinfo.cc

Modified: compiler-rt/trunk/lib/asan/sysinfo/sysinfo.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/sysinfo/sysinfo.cc?rev=145886&r1=145885&r2=145886&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/sysinfo/sysinfo.cc (original)
+++ compiler-rt/trunk/lib/asan/sysinfo/sysinfo.cc Mon Dec  5 19:08:31 2011
@@ -536,9 +536,10 @@
 
   const int rc = snprintf(buffer, bufsize,
                           "%08"PRIx64"-%08"PRIx64" %c%c%c%c %08"PRIx64" %02x:%02x %-11"PRId64" %s\n",
-                          start, end, r,w,x,p, offset,
+                          (unsigned long long)start, (unsigned long long)end, r,w,x,p,
+                          (unsigned long long)offset,
                           static_cast<int>(dev/256), static_cast<int>(dev%256),
-                          inode, filename);
+                          (unsigned long long)inode, filename);
   return (rc < 0 || rc >= bufsize) ? 0 : rc;
 }
 
@@ -609,4 +610,3 @@
 void RawClose(RawFD fd) {
   NO_INTR(close(fd));
 }
-





More information about the llvm-commits mailing list