add snax.printf

This commit is contained in:
Cloud Wu
2015-04-15 16:52:55 +08:00
parent a6bad52181
commit 843095afc6

View File

@@ -162,4 +162,8 @@ function snax.hotfix(obj, source, ...)
return test_result(skynet_call(obj.handle, "snax", t.system.hotfix, source, ...))
end
function snax.printf(fmt, ...)
skynet.error(string.format(fmt, ...))
end
return snax