Print empty line in status if underlying device disappeared.
authorMilan Broz <gmazyland@gmail.com>
Sun, 30 May 2010 17:38:11 +0000 (17:38 +0000)
committerMilan Broz <gmazyland@gmail.com>
Sun, 30 May 2010 17:38:11 +0000 (17:38 +0000)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@243 36d66b0a-2a48-0410-832c-cd162a569da5

src/cryptsetup.c

index 87ef6ff..2b48e41 100644 (file)
@@ -282,7 +282,7 @@ static int action_status(int arg)
                log_std("%s/%s is active:\n", crypt_get_dir(), options.name);
                log_std("  cipher:  %s\n", options.cipher);
                log_std("  keysize: %d bits\n", options.key_size * 8);
-               log_std("  device:  %s\n", options.device);
+               log_std("  device:  %s\n", options.device ?: "");
                log_std("  offset:  %" PRIu64 " sectors\n", options.offset);
                log_std("  size:    %" PRIu64 " sectors\n", options.size);
                if (options.skip)