diff options
author | Rafal Szczesniak <mimir@samba.org> | 2003-11-19 23:14:21 +0000 |
---|---|---|
committer | Rafal Szczesniak <mimir@samba.org> | 2003-11-19 23:14:21 +0000 |
commit | 2a22bd3038c8b47834406d2bdb3457aea5fb9a11 (patch) | |
tree | 9baa884741d3495f4e0d44a5df685d4b7c9f81dc | |
parent | f5e68bcfa1145d45e04012a8acfb6104c86d61ce (diff) | |
download | samba-2a22bd3038c8b47834406d2bdb3457aea5fb9a11.tar.gz samba-2a22bd3038c8b47834406d2bdb3457aea5fb9a11.tar.bz2 samba-2a22bd3038c8b47834406d2bdb3457aea5fb9a11.zip |
Added useful information to debug lines.
Patch by metze.
rafal
(This used to be commit 91e1be66b1a3aa002f68d8f1c2fc148c1374d365)
-rw-r--r-- | source3/lib/util_str.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index 5811b3b5e3..aa50b07f61 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -574,7 +574,7 @@ char *safe_strcpy_fn(const char *fn, int line, char *dest,const char *src, size_ size_t len; if (!dest) { - DEBUG(0,("ERROR: NULL dest in safe_strcpy\n")); + DEBUG(0,("ERROR: NULL dest in safe_strcpy, called from [%s][%d]\n", fn, line)); return NULL; } @@ -610,7 +610,7 @@ char *safe_strcat_fn(const char *fn, int line, char *dest, const char *src, size size_t src_len, dest_len; if (!dest) { - DEBUG(0,("ERROR: NULL dest in safe_strcat\n")); + DEBUG(0,("ERROR: NULL dest in safe_strcat, called from [%s][%d]\n", fn, line)); return NULL; } @@ -654,7 +654,7 @@ char *alpha_strcpy_fn(const char *fn, int line, char *dest, const char *src, con #endif if (!dest) { - DEBUG(0,("ERROR: NULL dest in alpha_strcpy\n")); + DEBUG(0,("ERROR: NULL dest in alpha_strcpy, called from [%s][%d]\n", fn, line)); return NULL; } @@ -696,7 +696,7 @@ char *StrnCpy_fn(const char *fn, int line,char *dest,const char *src,size_t n) #endif if (!dest) { - DEBUG(0,("ERROR: NULL dest in StrnCpy\n")); + DEBUG(0,("ERROR: NULL dest in StrnCpy, called from [%s][%d]\n", fn, line)); return NULL; } |