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 <no-reply+buildbot@haiku-os.org> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
2876efaafe
commit
d7a4a01f98
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user