usb-header.awk: Fix use of printf

Change-Id: I0f07a321ab5b896c166270b5da6f667cb47ddf26
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4279
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Jérôme Duval
2021-07-30 04:35:08 +00:00
parent 2876efaafe
commit d7a4a01f98
+2 -2
View File
@@ -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