]> git.e2factory.org Git - e2factory.git/commitdiff
Do not mangle module name with an underscore in debug log
authorTobias Ulmer <tu@emlix.com>
Mon, 28 Oct 2013 13:24:24 +0000 (14:24 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:01:23 +0000 (15:01 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/trace.lua

index 2c9cecfdafff2cb82cfd1dc2847903b4aed3fa6b..516e53d2f52a326ba4fbbfc7f978dada301a2968 100644 (file)
@@ -39,7 +39,7 @@ local function tracer(event, line)
         -- DEBUG: comment this to see all C calls.
         return
     else
-        module = string.match(ftbl.source, "(%w+%.)lua$")
+        module = string.match(ftbl.source, "([^/]+%.)lua$")
         if module == nil then
             module = "<unknown module>."
             -- DEBUG: comment this to see all unknown calls.