commit:     a496627e69834aae3ec560d500347b26769346b7
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 14 18:50:50 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> 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 <unset> for SLOT and SUBSLOT

Signed-off-by: Fabian Groffen <grobian <AT> 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 : "<unset>",
+                                                               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)) {

Reply via email to