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:
@@ -49,7 +49,7 @@ BEGIN {
|
|||||||
vendor = substr($0, 7)
|
vendor = substr($0, 7)
|
||||||
gsub( /\"/, "&&", vendor )
|
gsub( /\"/, "&&", vendor )
|
||||||
|
|
||||||
printf formatting "\t{ 0x" vendorid ", \"" vendor "\" }" > ofile
|
printf "%s", formatting "\t{ 0x" vendorid ", \"" vendor "\" }" > ofile
|
||||||
}
|
}
|
||||||
|
|
||||||
# matches device
|
# matches device
|
||||||
@@ -83,7 +83,7 @@ END {
|
|||||||
} else {
|
} else {
|
||||||
formatting = ""
|
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
|
print "\n} ;\n\n// Use this value for loop control during searching:\n#define USB_DEVTABLE_LEN (sizeof(UsbDevTable)/sizeof(USB_DEVTABLE))\n" > ofile
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user