diff options
author | Heinrich Schuchardt | 2019-05-16 07:37:22 +0200 |
---|---|---|
committer | Heinrich Schuchardt | 2019-05-19 08:10:10 +0200 |
commit | f005f573a80cf4cd413292edf3d6c87dd2daf84d (patch) | |
tree | 2ea9f539273a2b0c7ce1429ff0dbab31e82e80c1 /lib/efi_loader | |
parent | ce54fdc492dfac6c52fcd369a7414d5ef1f3ded9 (diff) |
efi_loader: merge adjacent sprintf()
In the implementation of the device path to text protocol join adjacent
sprintf() statements.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader')
-rw-r--r-- | lib/efi_loader/efi_device_path_to_text.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/efi_loader/efi_device_path_to_text.c b/lib/efi_loader/efi_device_path_to_text.c index f3a95790766..96fd08971b7 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: |