From def30139d7feb32fdc8a6c5e18a7f95d1d4417dc Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sat, 31 Dec 2011 13:31:33 +0100 Subject: cli: report as 'none' when no SIM path is given Instead of giving '/' --- cli/mmcli-modem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/mmcli-modem.c') diff --git a/cli/mmcli-modem.c b/cli/mmcli-modem.c index 57cf702f..451a8a2b 100644 --- a/cli/mmcli-modem.c +++ b/cli/mmcli-modem.c @@ -266,8 +266,8 @@ print_modem_info (void) * easiest to maintain */ #undef VALIDATE_UNKNOWN #define VALIDATE_UNKNOWN(str) (str ? str : "unknown") -#undef VALIDATE_NONE -#define VALIDATE_NONE(str) (str ? str : "none") +#undef VALIDATE_PATH +#define VALIDATE_PATH(str) ((str && !g_str_equal (str, "/")) ? str : "none") /* Strings with mixed properties */ unlock_required = mm_modem_get_unlock_required (ctx->modem); @@ -381,7 +381,7 @@ print_modem_info (void) /* SIM */ g_print (" -------------------------\n" " SIM | path: '%s'\n", - VALIDATE_NONE (mm_modem_get_sim_path (ctx->modem))); + VALIDATE_PATH (mm_modem_get_sim_path (ctx->modem))); g_print ("\n"); g_free (allowed_bands_string); -- cgit v1.2.3-70-g09d2