[PATCH 12/18] Add progname to sm_prefix()

John Levon <[email protected]>
Newsgroups org.kernel.vger.smatch
Message-ID <[email protected]>
Signed-off-by: John Levon <[email protected]>
---
 smatch.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/smatch.h b/smatch.h
index 90120f51..db4bb4cf 100644
--- a/smatch.h
+++ b/smatch.h
@@ -232,7 +232,7 @@ extern int sm_nr_errors;
 
 static inline void sm_prefix(void)
 {
-	sm_printf("%s:%d %s() ", get_filename(), get_lineno(), get_function());
+	sm_printf("%s: %s:%d %s() ", progname, get_filename(), get_lineno(), get_function());
 }
 
 static inline void print_implied_debug_msg();
-- 
2.14.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.