commit:     90a4313ac928eefd28213fb68737faf48c7dcc57
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri May  3 08:58:56 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri May  3 08:58:56 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=90a4313a

qlop: simplify fmt_atom somewhat

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 qlop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qlop.c b/qlop.c
index a87cc5c..c92575f 100644
--- a/qlop.c
+++ b/qlop.c
@@ -275,8 +275,8 @@ static char *fmt_atom(struct qlop_mode *flags, depend_atom 
*atom)
        (void)flags;
 
        if (verbose) {
-               size_t len = snprintf(_atom_buf, sizeof(_atom_buf), "%s/%s-%s",
-                               atom->CATEGORY, atom->PN, atom->PV);
+               size_t len = snprintf(_atom_buf, sizeof(_atom_buf), "%s/%s",
+                               atom->CATEGORY, atom->P);
                if (atom->PR_int > 0)
                        snprintf(_atom_buf + len, sizeof(_atom_buf) - len, 
"-r%d",
                                atom->PR_int);

Reply via email to