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). > > Address one FIXME by adding an Error parameter and warning the > caller if the requested number cannot be represented in JSON; > but add another FIXME in its place because we have no way to > report the problem higher up the stack. > > Signed-off-by: Eric Blake <ebl...@redhat.com>
Reviewed-by: Fam Zheng <f...@redhat.com>