From: Heinrich Schuchardt Date: Thu, 16 May 2019 05:37:22 +0000 (+0200) Subject: efi_loader: merge adjacent sprintf() X-Git-Tag: v2019.07-rc3~20^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f005f573a80cf4cd413292edf3d6c87dd2daf84d;p=platform%2Fkernel%2Fu-boot.git efi_loader: merge adjacent sprintf() In the implementation of the device path to text protocol join adjacent sprintf() statements. Signed-off-by: Heinrich Schuchardt --- diff --git a/lib/efi_loader/efi_device_path_to_text.c b/lib/efi_loader/efi_device_path_to_text.c index f3a9579..96fd089 100644 --- a/lib/efi_loader/efi_device_path_to_text.c +++ b/lib/efi_loader/efi_device_path_to_text.c @@ -79,9 +79,8 @@ static char *dp_acpi(char *s, struct efi_device_path *dp) struct efi_device_path_acpi_path *adp = (struct efi_device_path_acpi_path *)dp; - s += sprintf(s, "Acpi(PNP%04X", EISA_PNP_NUM(adp->hid)); - s += sprintf(s, ",%d", adp->uid); - s += sprintf(s, ")"); + s += sprintf(s, "Acpi(PNP%04X,%d)", EISA_PNP_NUM(adp->hid), + adp->uid); break; } default: