]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Use fixed width reprting for the common cases, aids benchmark scripting.
authorNathan Scott <nathans@sgi.com>
Wed, 9 Mar 2005 14:11:46 +0000 (14:11 +0000)
committerNathan Scott <nathans@sgi.com>
Wed, 9 Mar 2005 14:11:46 +0000 (14:11 +0000)
Merge of master-melb:xfs-cmds:21783a by kenmcd.

io/file.c
io/mmap.c

index e302a755f850a83a45eb48512be476a46f5306fb..a82736260401f65c8f0c88c0fdfb5182cac1ea94 100644 (file)
--- a/io/file.c
+++ b/io/file.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004 Silicon Graphics, Inc.  All Rights Reserved.
+ * Copyright (c) 2004-2005 Silicon Graphics, Inc.  All Rights Reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of version 2 of the GNU General Public License as
@@ -50,7 +50,7 @@ print_fileio(
        int             index,
        int             braces)
 {
-       printf(_("%c%d%c %-14s (%s,%s,%s,%s%s%s)\n"),
+       printf(_("%c%03d%c %-14s (%s,%s,%s,%s%s%s)\n"),
                braces? '[' : ' ', index, braces? ']' : ' ', file->name,
                file->flags & IO_FOREIGN ? _("foreign") : _("xfs"),
                file->flags & IO_OSYNC ? _("sync") : _("non-sync"),
index 3d49e785f4b4fd6b54aa3064d77b94bb1a08eeb9..07c54c75bf0c2e8d45e1c869598a9f202ec93daa 100644 (file)
--- a/io/mmap.c
+++ b/io/mmap.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004 Silicon Graphics, Inc.  All Rights Reserved.
+ * Copyright (c) 2004-2005 Silicon Graphics, Inc.  All Rights Reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of version 2 of the GNU General Public License as
@@ -69,7 +69,7 @@ print_mapping(
 
        for (i = 0, p = pflags; p->prot != PROT_NONE; i++, p++)
                buffer[i] = (map->prot & p->prot) ? p->mode : '-';
-       printf("%c%d%c 0x%lx - 0x%lx %s  %14s (%lld : %ld)\n",
+       printf("%c%03d%c 0x%lx - 0x%lx %s  %14s (%lld : %ld)\n",
                braces? '[' : ' ', index, braces? ']' : ' ',
                (unsigned long)map->addr,
                (unsigned long)((char *)map->addr + map->length),