On 29.04.2012 22:23, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 29.04.2012 22:09, Bean wrote:
>> Hi,
>>
>> Pls check out this one.
> In terms of decreasing code duplication it doesn't improve at all. The
> prefix-chosing code needs to be put into a separate function which would
> be used by both instances.
E.g.
#define GRUB_HUMAN_SIZE_MAX_LEN sizeof ("XXXXXXXXXXXXXXXXXXXX TiB")
void grub_huma_size_make_size (char *res, grub_disk_addr_t sz);

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to