summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-05-31 11:17:48 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-05-31 11:17:48 -0400
commitd61831cabb8c63677e3684c8ba12b24b66923aa9 (patch)
treea0944b5247574e5293627ccde908d61ef355714b
parent86110fd186be29f313d781945ba6cdc500f25b32 (diff)
Don't check if printf(format) arg is a string.
-rw-r--r--indra/newview/scripts/lua/printf.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/scripts/lua/printf.lua b/indra/newview/scripts/lua/printf.lua
index 584cd4f391..e84b2024df 100644
--- a/indra/newview/scripts/lua/printf.lua
+++ b/indra/newview/scripts/lua/printf.lua
@@ -2,7 +2,7 @@
local inspect = require 'inspect'
-local function printf(...)
+local function printf(format, ...)
-- string.format() only handles numbers and strings.
-- Convert anything else to string using the inspect module.
local args = {}
@@ -13,7 +13,7 @@ local function printf(...)
table.insert(args, inspect(arg))
end
end
- print(string.format(table.unpack(args)))
+ print(string.format(format, table.unpack(args)))
end
return printf