[Linaro-uefi] [PATCH RFC 10/19] move truncate_string() to efi-shared.c