wait_state function changes.

  - Assign default match_state value
  - Need to suppress "#" in quiet mode.

Change-Id: Ie01dca0b61e3f5b3c286a562a60a1163ee7745ec
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/state.py b/lib/state.py
index 029ed7d..f84cd3f 100755
--- a/lib/state.py
+++ b/lib/state.py
@@ -396,7 +396,7 @@
 
 
 ###############################################################################
-def wait_state(match_state,
+def wait_state(match_state=(),
                wait_time="1 min",
                interval="1 second",
                invert=0,
@@ -453,8 +453,12 @@
                          alt_text + "match the state shown below.")
         grp.rprint_var(match_state)
 
+    if quiet:
+        print_string=""
+    else:
+        print_string="#"
     cmd_buf = ["Check State", match_state, "invert=${" + str(invert) + "}",
-               "print_string=#", "openbmc_host=" + openbmc_host,
+               "print_string=" + print_string, "openbmc_host=" + openbmc_host,
                "openbmc_username=" + openbmc_username,
                "openbmc_password=" + openbmc_password, "os_host=" + os_host,
                "os_username=" + os_username, "os_password=" + os_password,