From 394bacaceaab13fcebc039ea2cc82dfe0ab33bd2 Mon Sep 17 00:00:00 2001 From: Alexander Yakushev Date: Thu, 19 Apr 2012 15:59:37 +0300 Subject: [PATCH] gears.debug: Print plain non-table values in dump_raw dump_raw function wasn't printing the plain (non-table) value if the tag was not specified. Signed-off-by: Alexander Yakushev Signed-off-by: Uli Schlachter --- lib/gears/debug.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gears/debug.lua.in b/lib/gears/debug.lua.in index 910e62dc7..2817c7f1a 100644 --- a/lib/gears/debug.lua.in +++ b/lib/gears/debug.lua.in @@ -35,11 +35,11 @@ local function dump_raw(data, shift, tag) local result = "" if tag then - result = result .. tostring(tag) .. " : " .. tostring(data) + result = result .. tostring(tag) .. " : " end if type(data) ~= "table" then - return result .. " (" .. type(data) .. ")" + return result .. tostring(data) .. " (" .. type(data) .. ")" end shift = (shift or "") .. " "