]> sourceware.org Git - lvm2.git/commit
libdm: report: postpone printing of JSON starting '{' character till it's needed
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 4 Aug 2016 09:05:20 +0000 (11:05 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Tue, 9 Aug 2016 16:24:45 +0000 (18:24 +0200)
commitd86caf952ee208ef2b3b56937af670c76db75ba0
treecddb1b5221bee72132c9631741359055db518753
parent9c2113928430e25a4cc7b68a94aca7d8388b3b60
libdm: report: postpone printing of JSON starting '{' character till it's needed

This patch moves printing of starting '{' character for JSON output up
untili it's known there's any further output following - either the
content or ending '}' character.

Also, remove unnecessary switch for different report group types and
calling individual functions to handle dm_report_group_create as that
code is shared for all existing types at the moment.
libdm/libdm-report.c
This page took 0.036533 seconds and 5 git commands to generate.