mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -05:00
* 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
This commit is contained in:
parent
4bb58ef117
commit
3b95de655b
@ -348,8 +348,8 @@ void cb_trans_progress(pmtransprog_t event, char *pkgname, const int percent,
|
||||
/* 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,
|
||||
|
Loading…
Reference in New Issue
Block a user