From: Nathan Scott Date: Wed, 9 Mar 2005 14:11:46 +0000 (+0000) Subject: Use fixed width reprting for the common cases, aids benchmark scripting. X-Git-Tag: v2.7.0~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=153563c4084e148fe2ef1d7f5e73cf414e514735;p=thirdparty%2Fxfsprogs-dev.git Use fixed width reprting for the common cases, aids benchmark scripting. Merge of master-melb:xfs-cmds:21783a by kenmcd. --- diff --git a/io/file.c b/io/file.c index e302a755f..a82736260 100644 --- 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"), diff --git a/io/mmap.c b/io/mmap.c index 3d49e785f..07c54c75b 100644 --- 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),