From f47e5a7732f9b5da71080fdc229acde4ec6da3c1 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 12 Jul 2020 22:46:21 -0700 Subject: 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. --- rsync.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rsync.h') diff --git a/rsync.h b/rsync.h index 9942a705..c8715747 100644 --- a/rsync.h +++ b/rsync.h @@ -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))) -- cgit v1.2.1