diff options
author | Rafal Szczesniak <mimir@samba.org> | 2003-11-19 22:56:02 +0000 |
---|---|---|
committer | Rafal Szczesniak <mimir@samba.org> | 2003-11-19 22:56:02 +0000 |
commit | a63010bae7710a4d24ebbae5f232fa792f005112 (patch) | |
tree | 46ff4767ff61cbc9e85115dc37bcfaf74dc33cc3 | |
parent | 885140bcb71863da2a75cce00aba40d22d844dbd (diff) | |
download | samba-a63010bae7710a4d24ebbae5f232fa792f005112.tar.gz samba-a63010bae7710a4d24ebbae5f232fa792f005112.tar.bz2 samba-a63010bae7710a4d24ebbae5f232fa792f005112.zip |
Added useful information to debug lines.
Patch by metze.
rafal
(This used to be commit 2eef3c7bc182bb2c0c483190570ee1a297047ad2)
-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 a560f61e7c..d2b64aff2e 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); } |