diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-02-17 10:33:11 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2023-02-17 10:33:11 +0000 |
commit | fe7008e414969db60b86491b263bf39bf055823b (patch) | |
tree | 3cbca59b00ba8b4be1b5ab65372b1215b8de6a0e /cli/mmcli-output.c | |
parent | c3365a36f0adf3dfce603dcd27c29efa85aad9ac (diff) |
cli,output: coding style fixes
Diffstat (limited to 'cli/mmcli-output.c')
-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 48cadee8..d74f99bf 100644 --- a/cli/mmcli-output.c +++ b/cli/mmcli-output.c @@ -1472,7 +1472,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); @@ -1536,16 +1536,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); } @@ -1557,7 +1557,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; @@ -1570,13 +1570,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"); } /******************************************************************************/ |