iface-modem: print power state as string

Thanks to Marius B. Kotsbak <marius@kotsbak.com> for reporting.
This commit is contained in:
Aleksander Morgado
2013-01-21 10:33:49 +01:00
parent 1cf8ccbdd5
commit 9d5794e9e4

View File

@@ -1526,7 +1526,7 @@ handle_set_power_state_auth_ready (MMBaseModem *self,
MM_CORE_ERROR,
MM_CORE_ERROR_INVALID_ARGS,
"Cannot set '%s' power state",
ctx->power_state);
mm_modem_power_state_get_string (ctx->power_state));
handle_set_power_state_context_free (ctx);
return;
}