From 9aef96c2a45fe34ac8ebb748bc5c65d21781ba42 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Thu, 28 Nov 2013 14:01:32 +0300 Subject: [PATCH] smdb: improve "where" output Before it just printed raw python objects. Signed-off-by: Dan Carpenter --- smatch_data/db/smdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smatch_data/db/smdb.py b/smatch_data/db/smdb.py index 67ad3658..737ee9e8 100755 --- a/smatch_data/db/smdb.py +++ b/smatch_data/db/smdb.py @@ -185,7 +185,7 @@ def function_type_value(struct_type, member): cur = con.cursor() cur.execute("select * from function_type_value where type = '(struct %s)->%s';" %(struct_type, member)) for txt in cur: - print txt + print "%s | %s | %s | %s" %(txt[0], txt[1], txt[2], txt[3]) if len(sys.argv) < 2: usage() -- 2.11.4.GIT