[pacman-dev] CVS update of pacman-lib/src/pacman (trans.c)
Date: Wednesday, February 21, 2007 @ 23:32:10 Author: aaron Path: /home/cvs-pacman/pacman-lib/src/pacman Modified: trans.c (1.36 -> 1.37) * Using positional params (POSIX compliant, not C standard) for printfs that require a lot of duplicates - this may or may not be a good idea with regards to portability, but we'll see ---------+ trans.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: pacman-lib/src/pacman/trans.c diff -u pacman-lib/src/pacman/trans.c:1.36 pacman-lib/src/pacman/trans.c:1.37 --- pacman-lib/src/pacman/trans.c:1.36 Sat Feb 17 03:55:06 2007 +++ pacman-lib/src/pacman/trans.c Wed Feb 21 23:32:09 2007 @@ -348,8 +348,8 @@ /* TODO clean up so digits and pkglen aren't passed twice */ /* TODO we may need some sort of wchar_t wprintf output here in order * to get the lengths right, prinf works on bytes and not chars */ - printf("(%*d/%*d) %s %-*.*s", digits, remain, digits, howmany, - opr, pkglen, pkglen, pkgname); + printf("(%2$*1$d/%3$*1$d) %4$s %6$-*5$.*5$s", digits, remain, howmany, + opr, pkglen, pkgname); break; case PM_TRANS_PROGRESS_CONFLICTS_START: printf("(%*d/%*d) %-*s", digits, remain, digits, howmany,
participants (1)
-
Aaron Griffin