diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-11-29 11:51:27 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-12-03 12:58:53 +0000 |
commit | edb65f915f24fbd6611a343c99aba83ac3867b89 (patch) | |
tree | ab4943e9914665cc6539936c321cbab0c2147108 /src/host/layer23/src/mobile/script_lua.c | |
parent | 50869b91469122a82554c34dc7a83025c7a2d1dd (diff) |
mobile: Use new LOGPSRCC macro to print multiple values
We need continuation to avoid printing the logging category
again. E.g. when print(one, two, three) is called.
Change-Id: Id8491fa949768f170a8c74ab554cb1166afda1b7
Diffstat (limited to 'src/host/layer23/src/mobile/script_lua.c')
-rw-r--r-- | src/host/layer23/src/mobile/script_lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host/layer23/src/mobile/script_lua.c b/src/host/layer23/src/mobile/script_lua.c index cbba0708..422f9e4f 100644 --- a/src/host/layer23/src/mobile/script_lua.c +++ b/src/host/layer23/src/mobile/script_lua.c @@ -56,10 +56,11 @@ static int lua_osmo_do_log(lua_State *L, int loglevel) lua_getstack(L, 1, &ar); lua_getinfo(L, "nSl", &ar); + LOGPSRC(DLUA, loglevel, ar.source, ar.currentline, "%s", ""); for (i = 1; i <= argc; ++i) { if (!lua_isstring(L, i)) continue; - LOGPSRC(DLUA, loglevel, ar.source, ar.currentline, + LOGPSRCC(DLUA, loglevel, ar.source, ar.currentline, 1, "%s%s", i > 1 ? "\t" : "", lua_tostring(L, i)); } LOGPC(DLUA, loglevel, "\n"); |