Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH] partx: do not print null
@ 2011-08-12 19:38 Davidlohr Bueso
  2011-08-15 12:36 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2011-08-12 19:38 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux

From: Davidlohr Bueso <dave@gnu.org>
Date: Fri, 12 Aug 2011 15:36:50 -0400

Replace the annoying null output when displaying no partitions in verbose mode.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
 partx/partx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/partx/partx.c b/partx/partx.c
index b2a72ed..0b35f9f 100644
--- a/partx/partx.c
+++ b/partx/partx.c
@@ -795,7 +795,7 @@ int main(int argc, char **argv)
 
 	if (verbose)
 		printf(_("partition: %s, disk: %s, lower: %d, upper: %d\n"),
-				device, wholedisk, lower, upper);
+		       device ? device : "none", wholedisk, lower, upper);
 
 	if (what == ACT_ADD || what == ACT_DELETE) {
 		struct stat x;
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] partx: do not print null
  2011-08-12 19:38 [PATCH] partx: do not print null Davidlohr Bueso
@ 2011-08-15 12:36 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2011-08-15 12:36 UTC (permalink / raw)
  To: Davidlohr Bueso; +Cc: util-linux

On Fri, Aug 12, 2011 at 03:38:31PM -0400, Davidlohr Bueso wrote:
>  partx/partx.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

 Applied, thanks. 

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-15 12:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-12 19:38 [PATCH] partx: do not print null Davidlohr Bueso
2011-08-15 12:36 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox