From d7a4a01f984acc3eff4007ab4c4717086d6f35bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 29 Jul 2021 23:02:13 +0200 Subject: [PATCH] usb-header.awk: Fix use of printf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0f07a321ab5b896c166270b5da6f667cb47ddf26 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4279 Tested-by: Commit checker robot Reviewed-by: Jérôme Duval --- src/apps/devices/usb-header.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/devices/usb-header.awk b/src/apps/devices/usb-header.awk index 209ba63f83..84e0d08064 100644 --- a/src/apps/devices/usb-header.awk +++ b/src/apps/devices/usb-header.awk @@ -49,7 +49,7 @@ BEGIN { vendor = substr($0, 7) gsub( /\"/, "&&", vendor ) - printf formatting "\t{ 0x" vendorid ", \"" vendor "\" }" > ofile + printf "%s", formatting "\t{ 0x" vendorid ", \"" vendor "\" }" > ofile } # matches device @@ -83,7 +83,7 @@ END { } else { formatting = "" } - printf formatting "\t{ 0x" devices[i, 1] ", 0x" devices[i, 2] ", \"" devices[i, 3] "\" }" > ofile + printf "%s", formatting "\t{ 0x" devices[i, 1] ", 0x" devices[i, 2] ", \"" devices[i, 3] "\" }" > ofile } print "\n} ;\n\n// Use this value for loop control during searching:\n#define USB_DEVTABLE_LEN (sizeof(UsbDevTable)/sizeof(USB_DEVTABLE))\n" > ofile