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 140DC138335 for ; Sun, 14 Jul 2019 18:51:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AD6AE091A; Sun, 14 Jul 2019 18:51:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 005DCE091A for ; Sun, 14 Jul 2019 18:51:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 18A74347B0A for ; Sun, 14 Jul 2019 18:51:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 759B26F0 for ; Sun, 14 Jul 2019 18:51:31 +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: <1563130250.a496627e69834aae3ec560d500347b26769346b7.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/atom.c X-VCS-Directories: libq/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: a496627e69834aae3ec560d500347b26769346b7 X-VCS-Branch: master Date: Sun, 14 Jul 2019 18:51:31 +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: 0c6da039-8aab-4cba-82fb-5672cba404bd X-Archives-Hash: 65915d2633ceb40d76b2a4e89f090ed3 commit: a496627e69834aae3ec560d500347b26769346b7 Author: Fabian Groffen gentoo org> AuthorDate: Sun Jul 14 18:50:50 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Sun Jul 14 18:50:50 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=a496627e libq/atom: make atom_format return for SLOT and SUBSLOT Signed-off-by: Fabian Groffen gentoo.org> libq/atom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libq/atom.c b/libq/atom.c index 170eeea..4c21a40 100644 --- a/libq/atom.c +++ b/libq/atom.c @@ -778,14 +778,14 @@ atom_format_r( append_buf(buf, buflen, "%s%s%s%s", YELLOW, connected ? ":" : "", - atom->SLOT ? atom->SLOT : "", + HN(atom->SLOT), NORM); } else if (!strncmp("SUBSLOT", fmt, len)) { if (showit || atom->SUBSLOT) append_buf(buf, buflen, "%s%s%s%s%s", YELLOW, connected ? "/" : "", - atom->SUBSLOT ? atom->SUBSLOT : "", + HN(atom->SUBSLOT), atom_slotdep_str[atom->slotdep], NORM); } else if (!strncmp("REPO", fmt, len)) {