Re: [Qemu-devel] [PATCH v6 2/3] utils: provide size_to_str()

2017-05-11 Thread Peter Xu
On Wed, May 10, 2017 at 01:34:18PM +0200, Markus Armbruster wrote: > Peter Xu writes: > > > Moving the algorithm from print_type_size() into size_to_str() so that > > other component can also leverage it. With that, refactor > > print_type_size(). > > > > Signed-off-by: Peter Xu > > --- > > inc

Re: [Qemu-devel] [PATCH v6 2/3] utils: provide size_to_str()

2017-05-10 Thread Markus Armbruster
Peter Xu writes: > Moving the algorithm from print_type_size() into size_to_str() so that > other component can also leverage it. With that, refactor > print_type_size(). > > Signed-off-by: Peter Xu > --- > include/qemu-common.h| 1 + > qapi/string-output-visitor.c | 22 ++-

Re: [Qemu-devel] [PATCH v6 2/3] utils: provide size_to_str()

2017-05-10 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > Moving the algorithm from print_type_size() into size_to_str() so that > other component can also leverage it. With that, refactor > print_type_size(). > > Signed-off-by: Peter Xu > --- > include/qemu-common.h| 1 + > qapi/string-output-visitor.c

[Qemu-devel] [PATCH v6 2/3] utils: provide size_to_str()

2017-05-09 Thread Peter Xu
Moving the algorithm from print_type_size() into size_to_str() so that other component can also leverage it. With that, refactor print_type_size(). Signed-off-by: Peter Xu --- include/qemu-common.h| 1 + qapi/string-output-visitor.c | 22 ++ util/cutils.c