summaryrefslogtreecommitdiffstats
path: root/partx/partx.c
diff options
context:
space:
mode:
authorDavidlohr Bueso2011-08-12 21:36:50 +0200
committerKarel Zak2011-08-15 14:28:21 +0200
commit2e2b6bb1c7f5ed37a8d7186bfdd21b5976a46823 (patch)
tree992873ee902c0ed14818e254994cc6f5bc2c6490 /partx/partx.c
parentgrammar fixes (diff)
downloadkernel-qcow2-util-linux-2e2b6bb1c7f5ed37a8d7186bfdd21b5976a46823.tar.gz
kernel-qcow2-util-linux-2e2b6bb1c7f5ed37a8d7186bfdd21b5976a46823.tar.xz
kernel-qcow2-util-linux-2e2b6bb1c7f5ed37a8d7186bfdd21b5976a46823.zip
partx: do not print null
Replace the annoying null output when displaying no partitions in verbose mode. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'partx/partx.c')
-rw-r--r--partx/partx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/partx/partx.c b/partx/partx.c
index b2a72ede3..0b35f9f48 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;