From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 67F86138334 for ; Fri, 3 May 2019 11:45:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 584E5E0833; Fri, 3 May 2019 11:45:26 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 35D71E0833 for ; Fri, 3 May 2019 11:45:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5879B3433B2 for ; Fri, 3 May 2019 11:45:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 95764560 for ; Fri, 3 May 2019 11:45:21 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1556873936.90a4313ac928eefd28213fb68737faf48c7dcc57.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qlop.c X-VCS-Directories: / X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 90a4313ac928eefd28213fb68737faf48c7dcc57 X-VCS-Branch: master Date: Fri, 3 May 2019 11:45:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2cd51e1b-6451-4c51-a56b-0c45ea8a2925 X-Archives-Hash: bbfdf59c3e6e9cb00e85d37224c48b45 commit: 90a4313ac928eefd28213fb68737faf48c7dcc57 Author: Fabian Groffen gentoo org> AuthorDate: Fri May 3 08:58:56 2019 +0000 Commit: Fabian Groffen gentoo 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 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);