Minor Alpha fixes (merged from stable).
This commit is contained in:
@@ -116,24 +116,41 @@ main (int argc, char *argv [])
|
|||||||
device_minor = (device & 255);
|
device_minor = (device & 255);
|
||||||
device_major = ((device >> 8) & 255);
|
device_major = ((device >> 8) & 255);
|
||||||
|
|
||||||
if (filename)
|
if (filename) {
|
||||||
fprintf (stderr, "%08lx-%08lx %08lx - "
|
char *format;
|
||||||
"%02x:%02x %08lu - %4s - %s\n",
|
|
||||||
|
if (sizeof (void*) == 8)
|
||||||
|
format = "%016lx-%016lx %016lx - "
|
||||||
|
"%02x:%02x %08lu - %4s - %s\n";
|
||||||
|
else
|
||||||
|
format = "%08lx-%08lx %08lx - "
|
||||||
|
"%02x:%02x %08lu - %4s - %s\n";
|
||||||
|
|
||||||
|
fprintf (stderr, format,
|
||||||
(unsigned long) maps [i].start,
|
(unsigned long) maps [i].start,
|
||||||
(unsigned long) maps [i].end,
|
(unsigned long) maps [i].end,
|
||||||
(unsigned long) maps [i].offset,
|
(unsigned long) maps [i].offset,
|
||||||
device_major, device_minor,
|
device_major, device_minor,
|
||||||
(unsigned long) maps [i].inode,
|
(unsigned long) maps [i].inode,
|
||||||
perm, filename);
|
perm, filename);
|
||||||
else
|
} else {
|
||||||
fprintf (stderr, "%08lx-%08lx %08lx - "
|
char * format;
|
||||||
"%02x:%02x %08lu - %4s\n",
|
|
||||||
|
if (sizeof (void*) == 8)
|
||||||
|
format = "%016lx-%016lx %016lx - "
|
||||||
|
"%02x:%02x %08lu - %4s\n";
|
||||||
|
else
|
||||||
|
format = "%08lx-%08lx %08lx - "
|
||||||
|
"%02x:%02x %08lu - %4s\n";
|
||||||
|
|
||||||
|
fprintf (stderr, format,
|
||||||
(unsigned long) maps [i].start,
|
(unsigned long) maps [i].start,
|
||||||
(unsigned long) maps [i].end,
|
(unsigned long) maps [i].end,
|
||||||
(unsigned long) maps [i].offset,
|
(unsigned long) maps [i].offset,
|
||||||
device_major, device_minor,
|
device_major, device_minor,
|
||||||
(unsigned long) maps [i].inode,
|
(unsigned long) maps [i].inode,
|
||||||
perm);
|
perm);
|
||||||
|
}
|
||||||
|
|
||||||
if (filename && (filename != maps [i].filename))
|
if (filename && (filename != maps [i].filename))
|
||||||
glibtop_free (filename);
|
glibtop_free (filename);
|
||||||
|
Reference in New Issue
Block a user