Re: [Qemu-devel] [PATCH v2 04/14] qapi: Factor out JSON number formatting

2015-12-22 Thread Fam Zheng
On Mon, 12/21 17:30, Eric Blake wrote: > Pull out a new qstring_append_json_number() helper, so that all > JSON output producers can use a consistent style for printing > floating point without duplicating code (since we are doing more > data massaging than a simple printf format can handle). > >

[Qemu-devel] [PATCH v2 04/14] qapi: Factor out JSON number formatting

2015-12-21 Thread Eric Blake
Pull out a new qstring_append_json_number() helper, so that all JSON output producers can use a consistent style for printing floating point without duplicating code (since we are doing more data massaging than a simple printf format can handle). Address one FIXME by adding an Error parameter and