aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-10-04 16:43:43 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-10-04 18:52:39 +0200
commit0d00ee28be0e82227dd6795ab62669944fb7076f (patch)
tree059e90b9452c2e57c7c2b87697cd701bca576549 /cli
parentd84b4f634eac8e5aca8243824243e8c017c11f13 (diff)
api,libmm-glib: use a 'unique-id' as ID of the firmware image, not a 'name'
Also, make only the 'unique-id' mandatory.
Diffstat (limited to 'cli')
-rw-r--r--cli/mmcli-modem-firmware.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/cli/mmcli-modem-firmware.c b/cli/mmcli-modem-firmware.c
index 52f5c0d9..b76fc836 100644
--- a/cli/mmcli-modem-firmware.c
+++ b/cli/mmcli-modem-firmware.c
@@ -54,7 +54,7 @@ static GOptionEntry entries[] = {
},
{ "firmware-select", 0, 0, G_OPTION_ARG_STRING, &select_str,
"Select a given firmware image",
- "[NAME]"
+ "[Unique ID]"
},
{ NULL }
};
@@ -157,17 +157,15 @@ list_process_reply (MMFirmwareProperties *selected,
MMFirmwareProperties *props = MM_FIRMWARE_PROPERTIES (l->data);
g_print ("\t[%u] %s%s\n"
- "\t\t Type: '%s'\n"
- "\t\tVersion: '%s'\n",
+ "\t\t Type: '%s'\n",
i,
- mm_firmware_properties_get_name (props),
+ mm_firmware_properties_get_unique_id (props),
((selected &&
- g_str_equal (mm_firmware_properties_get_name (props),
- mm_firmware_properties_get_name (selected))) ?
+ g_str_equal (mm_firmware_properties_get_unique_id (props),
+ mm_firmware_properties_get_unique_id (selected))) ?
" (CURRENT)" : ""),
mm_firmware_image_type_get_string (
- mm_firmware_properties_get_image_type (props)),
- mm_firmware_properties_get_version (props));
+ mm_firmware_properties_get_image_type (props)));
g_object_unref (props);
}
g_list_free (result);