Minor Alpha fixes (merged from stable).

This commit is contained in:
Martin Baulig
1999-05-27 23:15:56 +00:00
parent ca80d88a74
commit f248d99d7a

View File

@@ -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 {
char * format;
if (sizeof (void*) == 8)
format = "%016lx-%016lx %016lx - "
"%02x:%02x %08lu - %4s\n";
else else
fprintf (stderr, "%08lx-%08lx %08lx - " format = "%08lx-%08lx %08lx - "
"%02x:%02x %08lu - %4s\n", "%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);