From 0d00ee28be0e82227dd6795ab62669944fb7076f Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 4 Oct 2012 16:43:43 +0200 Subject: api,libmm-glib: use a 'unique-id' as ID of the firmware image, not a 'name' Also, make only the 'unique-id' mandatory. --- cli/mmcli-modem-firmware.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'cli/mmcli-modem-firmware.c') 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); -- cgit v1.2.3-70-g09d2