diff options
author | Wayne Davison <wayne@opencoder.net> | 2020-07-12 22:46:21 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2020-07-12 23:25:21 -0700 |
commit | f47e5a7732f9b5da71080fdc229acde4ec6da3c1 (patch) | |
tree | ed59883d1e964ff654cd740ec620bb589dacc5a0 /rsync.h | |
parent | 91fff802b9513cf0ed616d3aea170d561f899fae (diff) | |
download | rsync-f47e5a7732f9b5da71080fdc229acde4ec6da3c1.tar.gz |
Mention file & line on OOM and overflow errors.
Also simplify output of src file paths in errors & warnings when
built in a alternate build dir.
Diffstat (limited to 'rsync.h')
-rw-r--r-- | rsync.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1325,6 +1325,9 @@ extern char *do_malloc; #undef strdup #define strdup(s) my_strdup(s, __FILE__, __LINE__) +#define out_of_memory(msg) _out_of_memory(msg, __FILE__, __LINE__) +#define overflow_exit(msg) _overflow_exit(msg, __FILE__, __LINE__) + /* use magic gcc attributes to catch format errors */ void rprintf(enum logcode , const char *, ...) __attribute__((format (printf, 2, 3))) |