Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: /
Date: Fri, 03 May 2019 11:45:27
Message-Id: 1556873936.90a4313ac928eefd28213fb68737faf48c7dcc57.grobian@gentoo
1 commit: 90a4313ac928eefd28213fb68737faf48c7dcc57
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 3 08:58:56 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Fri May 3 08:58:56 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=90a4313a
7
8 qlop: simplify fmt_atom somewhat
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 qlop.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15 diff --git a/qlop.c b/qlop.c
16 index a87cc5c..c92575f 100644
17 --- a/qlop.c
18 +++ b/qlop.c
19 @@ -275,8 +275,8 @@ static char *fmt_atom(struct qlop_mode *flags, depend_atom *atom)
20 (void)flags;
21
22 if (verbose) {
23 - size_t len = snprintf(_atom_buf, sizeof(_atom_buf), "%s/%s-%s",
24 - atom->CATEGORY, atom->PN, atom->PV);
25 + size_t len = snprintf(_atom_buf, sizeof(_atom_buf), "%s/%s",
26 + atom->CATEGORY, atom->P);
27 if (atom->PR_int > 0)
28 snprintf(_atom_buf + len, sizeof(_atom_buf) - len, "-r%d",
29 atom->PR_int);