type: make type_to_str() return a sname() buffer
commit72abd1be3d71133e7ff2cbe97cea81d8d7455003
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 20 Mar 2015 11:19:24 +0000 (20 14:19 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 20 Mar 2015 11:19:24 +0000 (20 14:19 +0300)
treec68955162130ed454e62d430ab4be5e6e37a9efd
parent8eb720f48d616cfbf07733ccedfb39d285f4ca34
type: make type_to_str() return a sname() buffer

Smatch sucks with all the inconsistent allocating.  An "sname" is freed
automatically at the end of a function.

This function is mostly used for debugging.  Using a single buffer doesn't
work if you're printing two types in the same sm_msg().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_type.c