From ff339393859558323553aea89c1ecc90fcf55d01 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 28 May 2017 00:29:53 +0200 Subject: [PATCH 1/4] Use verbosity --- src/ar65/list.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ar65/list.c b/src/ar65/list.c index 656299860..496bbcde0 100644 --- a/src/ar65/list.c +++ b/src/ar65/list.c @@ -36,6 +36,9 @@ #include #include +/* common */ +#include "print.h" + /* ar65 */ #include "error.h" #include "library.h" @@ -73,6 +76,10 @@ void ListObjFiles (int argc, char* argv []) /* Get the entry */ O = CollConstAt (&ObjPool, I); + /* Print the size */ + if (Verbosity > 0) { + printf ("%5ld ", O->Size); + } /* Print the name */ printf ("%s\n", O->Name); From 843c5442b149ca12db80dcb5f55dc61da9feaa42 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 28 May 2017 13:13:53 +0200 Subject: [PATCH 2/4] Update list.c --- src/ar65/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ar65/list.c b/src/ar65/list.c index 496bbcde0..e307e70a8 100644 --- a/src/ar65/list.c +++ b/src/ar65/list.c @@ -78,7 +78,7 @@ void ListObjFiles (int argc, char* argv []) /* Print the size */ if (Verbosity > 0) { - printf ("%5ld ", O->Size); + Print (stdout, 1, "%5lu ", O->Size); } /* Print the name */ printf ("%s\n", O->Name); From c9c2562c14aa296c69548bd089f5ba689abf2156 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 28 May 2017 15:13:43 +0200 Subject: [PATCH 3/4] Update list.c --- src/ar65/list.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ar65/list.c b/src/ar65/list.c index e307e70a8..d65ad51e5 100644 --- a/src/ar65/list.c +++ b/src/ar65/list.c @@ -76,10 +76,8 @@ void ListObjFiles (int argc, char* argv []) /* Get the entry */ O = CollConstAt (&ObjPool, I); - /* Print the size */ - if (Verbosity > 0) { - Print (stdout, 1, "%5lu ", O->Size); - } + /* Print the size if verbose */ + Print (stdout, 1, "%5lu ", O->Size); /* Print the name */ printf ("%s\n", O->Name); From ea9430e28edc6b47a20bf3a94d05267a4c383569 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 28 May 2017 15:22:33 +0200 Subject: [PATCH 4/4] Update list.c --- src/ar65/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ar65/list.c b/src/ar65/list.c index d65ad51e5..367c950dc 100644 --- a/src/ar65/list.c +++ b/src/ar65/list.c @@ -79,7 +79,7 @@ void ListObjFiles (int argc, char* argv []) /* Print the size if verbose */ Print (stdout, 1, "%5lu ", O->Size); /* Print the name */ - printf ("%s\n", O->Name); + puts (O->Name); }