Powered by Linux
[PATCH 12/18] Add progname to sm_prefix() — Semantic Matching Tool

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: John Levon <levon@xxxxxxxxxxxxxxxxx>
---
 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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux