diff --git a/sbin/amrctl/amrctl.c b/sbin/amrctl/amrctl.c index 53efebdfbf7a..b121b5069208 100644 --- a/sbin/amrctl/amrctl.c +++ b/sbin/amrctl/amrctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: amrctl.c,v 1.11 2018/08/27 00:36:03 sevan Exp $ */ +/* $NetBSD: amrctl.c,v 1.12 2020/09/06 02:34:02 mrg Exp $ */ /*- * Copyright (c) 2002, Pierre David @@ -29,7 +29,7 @@ #include #ifndef lint -__RCSID("$NetBSD: amrctl.c,v 1.11 2018/08/27 00:36:03 sevan Exp $"); +__RCSID("$NetBSD: amrctl.c,v 1.12 2020/09/06 02:34:02 mrg Exp $"); #endif #include @@ -453,7 +453,8 @@ describe_one_volume(int ldrv, int verbosity, printf("Logical volume %d\t", ldrv); statestr = describe_state(verbosity, state); - printf("%s ", statestr); + if (statestr) + printf("%s ", statestr); printf("(%.2f GB, RAID%d", szgb, raid_level); if (verbosity >= 1) { describe_property(prop, propstr);