summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorLibravatar Aleksey Manevich <manevich.aleksey@gmail.com>2016-08-30 00:03:23 +0300
committerLibravatar Aleksey Manevich <manevich.aleksey@gmail.com>2016-08-30 00:03:23 +0300
commitad9977e18dbe1c104a1cabb48ea2ef56b5d31449 (patch)
tree7395b21388b8153da2ad2a777993cb6c8f0792ff /src/include
parentfix umask problem (diff)
downloadfirejail-ad9977e18dbe1c104a1cabb48ea2ef56b5d31449.tar.gz
firejail-ad9977e18dbe1c104a1cabb48ea2ef56b5d31449.tar.zst
firejail-ad9977e18dbe1c104a1cabb48ea2ef56b5d31449.zip
change errExit message to include filename
Diffstat (limited to 'src/include')
-rw-r--r--src/include/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/common.h b/src/include/common.h
index 762a0262a..e28870807 100644
--- a/src/include/common.h
+++ b/src/include/common.h
@@ -32,7 +32,7 @@
32#include <ctype.h> 32#include <ctype.h>
33#include <assert.h> 33#include <assert.h>
34 34
35#define errExit(msg) do { char msgout[500]; sprintf(msgout, "Error %s:%s(%d)", msg, __FUNCTION__, __LINE__); perror(msgout); exit(1);} while (0) 35#define errExit(msg) do { char msgout[500]; sprintf(msgout, "Error %s: %s:%d %s", msg, __FILE__, __LINE__, __FUNCTION__); perror(msgout); exit(1);} while (0)
36 36
37// macro to print ip addresses in a printf statement 37// macro to print ip addresses in a printf statement
38#define PRINT_IP(A) \ 38#define PRINT_IP(A) \