Index: src/processor/proc_maps_linux.cc |
=================================================================== |
--- src/processor/proc_maps_linux.cc (revision 1483) |
+++ src/processor/proc_maps_linux.cc (working copy) |
@@ -61,10 +61,10 @@ |
// The final %n term captures the offset in the input string, which is used |
// to determine the path name. It *does not* increment the return value. |
// Refer to man 3 sscanf for details. |
- if (sscanf(line, "%lx-%lx %4c %lx %hhx:%hhx %ld %n", |
- ®ion.start, ®ion.end, permissions, ®ion.offset, |
- ®ion.major_device, ®ion.minor_device, ®ion.inode, |
- &path_index) < 7) { |
+ if (sscanf(line, "%" SCNx64 "-%" SCNx64 " %4c %" SCNx64" %hhx:%hhx %" |
+ SCNd64 " %n", ®ion.start, ®ion.end, permissions, |
+ ®ion.offset, ®ion.major_device, ®ion.minor_device, |
+ ®ion.inode, &path_index) < 7) { |
BPLOG(ERROR) << "sscanf failed for line: " << line; |
return false; |
} |