Fix: large audit of close() use in sessiond main.c
[lttng-tools.git] / src / common / error.h
index 81c20223d124282b59bb8ea23801cd714156f441..822dccfedfee1e5ded65db0c716522c9bd814ec8 100644 (file)
@@ -75,7 +75,8 @@ extern int opt_verbose;
                " [in %s() at " __FILE__ ":" XSTR(__LINE__) "]\n", ## args, __func__)
 
 #define _PERROR(fmt, args...) \
-       __lttng_print(PRINT_ERR, "perror " fmt "\n", ## args)
+       __lttng_print(PRINT_ERR, "PERROR: " fmt \
+               " [in %s() at " __FILE__ ":" XSTR(__LINE__) "]\n", ## args, __func__)
 
 #define PERROR(call, args...) \
     do { \
This page took 0.022992 seconds and 4 git commands to generate.