diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-02-17 10:33:11 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2023-02-24 13:35:56 +0000 |
commit | 9db9aac27550f7d10a96b334b1965d2fc0830d42 (patch) | |
tree | 320c515a8ecde735c617f27a1f2b97e2ecd385a3 | |
parent | 3dceecf0035449b766ff88b231b00ba82053d6bf (diff) | |
download | ModemManager-9db9aac27550f7d10a96b334b1965d2fc0830d42.tar.gz |
cli,output: coding style fixes
(cherry picked from commit fe7008e414969db60b86491b263bf39bf055823b)
-rw-r--r-- | cli/mmcli-output.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cli/mmcli-output.c b/cli/mmcli-output.c index c616fb966..d4c663963 100644 --- a/cli/mmcli-output.c +++ b/cli/mmcli-output.c @@ -1577,7 +1577,7 @@ dump_output_json (void) output_items = g_list_sort (output_items, (GCompareFunc) list_sort_by_keys); - g_print("{"); + g_print ("{"); for (l = output_items; l; l = g_list_next (l)) { OutputItem *item_l = (OutputItem *)(l->data); @@ -1641,16 +1641,16 @@ dump_output_json (void) g_free (escaped); } if (i < n - 1) - g_print(","); + g_print (","); } - g_print("]"); + g_print ("]"); } else g_assert_not_reached (); } while (cur_dlen--) g_print ("}"); - g_print("}\n"); + g_print ("}\n"); g_strfreev (current_path); } @@ -1662,7 +1662,7 @@ dump_output_list_json (MmcF field) g_assert (field != MMC_F_UNKNOWN); - g_print("{\"%s\":[", field_infos[field].key); + g_print ("{\"%s\":[", field_infos[field].key); for (l = output_items; l; l = g_list_next (l)) { OutputItem *item_l; @@ -1675,13 +1675,13 @@ dump_output_list_json (MmcF field) /* All items must be of same type */ g_assert_cmpint (item_l->field, ==, field); - g_print("\"%s\"", listitem->value); + g_print ("\"%s\"", listitem->value); if (g_list_next (l)) - g_print(","); + g_print (","); } - g_print("]}\n"); + g_print ("]}\n"); } /******************************************************************************/ |