qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH v2 2/7] cutils: Add bytes_to_str() to format byt


From: Kevin Wolf
Subject: [Qemu-devel] Re: [PATCH v2 2/7] cutils: Add bytes_to_str() to format byte values
Date: Mon, 11 Oct 2010 13:09:32 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100907 Fedora/3.0.7-1.fc12 Thunderbird/3.0.7

Am 08.10.2010 17:48, schrieb Stefan Hajnoczi:
> From: Anthony Liguori <address@hidden>
> 
> This common function converts byte counts to human-readable strings with
> proper units.
> 
> Signed-off-by: Anthony Liguori <address@hidden>
> Signed-off-by: Stefan Hajnoczi <address@hidden>

I wonder how many similar implementations we have in the tree. I know at
least of cvtstr() in cmd.c, which is used by qemu-io, but I would be
surprised if it was the only one.

Adding such a function to cutils.c sounds like a good idea, but we
should probably try to change everything to use this common function.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]