Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in portage-utils: qlist.c
Date: Wed, 02 Mar 2011 08:13:55
Message-Id: 20110302081346.A45402004F@flycatcher.gentoo.org
vapier      11/03/02 08:13:46

  Modified:             qlist.c
  Log:
  have just one call to printf rather than printf/puts

Revision  Changes    Path
1.62                 portage-utils/qlist.c

file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qlist.c?rev=1.62&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qlist.c?rev=1.62&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qlist.c?r1=1.61&r2=1.62

Index: qlist.c
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/qlist.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- qlist.c	1 Mar 2011 05:17:13 -0000	1.61
+++ qlist.c	2 Mar 2011 08:13:46 -0000	1.62
@@ -1,7 +1,7 @@
 /*
  * Copyright 2005-2010 Gentoo Foundation
  * Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/portage-utils/qlist.c,v 1.61 2011/03/01 05:17:13 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/qlist.c,v 1.62 2011/03/02 08:13:46 vapier Exp $
  *
  * Copyright 2005-2010 Ned Ludd        - <solar@g.o>
  * Copyright 2005-2010 Mike Frysinger  - <vapier@g.o>
@@ -41,7 +41,7 @@
 	/* "query filename for pkgname", */
 	COMMON_OPTS_HELP
 };
-static const char qlist_rcsid[] = "$Id: qlist.c,v 1.61 2011/03/01 05:17:13 vapier Exp $";
+static const char qlist_rcsid[] = "$Id: qlist.c,v 1.62 2011/03/02 08:13:46 vapier Exp $";
 #define qlist_usage(ret) usage(ret, QLIST_FLAGS, qlist_long_opts, qlist_opts_help, lookup_applet_idx("qlist"))
 
 extern char *grab_vdb_item(const char *, const char *, const char *);
@@ -270,11 +270,11 @@
 						slot = grab_vdb_item("SLOT", cat[j]->d_name, de[x]->d_name);
 
 					/* display it */
-					printf("%s%s/%s%s%s%s%s%s%s%s%s", BOLD, cat[j]->d_name, BLUE,
-					       (!columns ? (pkgname ? pkgname->PN : de[x]->d_name) : pkgname->PN),
+					printf("%s%s/%s%s%s%s%s%s%s%s%s%s\n", BOLD, cat[j]->d_name, BLUE,
+						(!columns ? (pkgname ? pkgname->PN : de[x]->d_name) : pkgname->PN),
 						(columns ? " " : ""), (columns ? pkgname->PV : ""),
-						NORM, YELLOW, slot ? slot_separator : "", slot ? slot : "", NORM);
-					puts(umapstr(show_umap, cat[j]->d_name, de[x]->d_name));
+						NORM, YELLOW, slot ? slot_separator : "", slot ? slot : "", NORM,
+						umapstr(show_umap, cat[j]->d_name, de[x]->d_name));
 				}
 				if (pkgname)
 					atom_implode(pkgname);