From dbaade3c4fc3ff63627bc561de4675a124c11fea Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Wed, 2 Mar 2016 12:28:12 -0500 Subject: [PATCH] status.c: don't print trailing spaces for last field This will allow users' terminals to be 5 columns thinner without seemingly printing a blank line between each row. --- src/app/rpmostree-builtin-status.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/rpmostree-builtin-status.c b/src/app/rpmostree-builtin-status.c index c1e0cfa4..5ffb0863 100644 --- a/src/app/rpmostree-builtin-status.c +++ b/src/app/rpmostree-builtin-status.c @@ -158,7 +158,7 @@ rpmostree_builtin_status (int argc, g_print ("%-*s%-*s%-*s\n", max_id_len+buffer, HEADER_ID, max_osname_len+buffer, HEADER_OSNAME, - max_refspec_len+buffer, HEADER_REFSPEC); + max_refspec_len, HEADER_REFSPEC); } /* header for "pretty" row output */ else @@ -221,7 +221,7 @@ rpmostree_builtin_status (int argc, g_print ("%-*s%-*s%-*s\n", max_id_len+buffer, truncated_csum, max_osname_len+buffer, os_name, - max_refspec_len+buffer, origin_refspec); + max_refspec_len, origin_refspec); } /* print "pretty" row info */