diff --git a/src/libCom/assertUNIX.c b/src/libCom/assertUNIX.c index 44bd9e4d7..24f2ef6db 100644 --- a/src/libCom/assertUNIX.c +++ b/src/libCom/assertUNIX.c @@ -27,6 +27,9 @@ * Modification Log: * ----------------- * $Log$ + * Revision 1.3 1995/08/12 00:59:11 jhill + * use $log in header + * */ #include @@ -41,7 +44,8 @@ /* * epicsAssert () */ -void epicsAssert (const char *pFile, const unsigned line, const char *pMsg) +void epicsAssert (const char *pFile, const unsigned line, const char *pMsg, + const char *pAuthorName) { epicsPrintf ( "\n\n\nA call to \"assert (%s)\" failed in %s line %d.\n", pMsg, pFile, line); @@ -55,12 +59,28 @@ void epicsAssert (const char *pFile, const unsigned line, const char *pMsg) epicsPrintf ( "in diagnosing this problem.\n"); - epicsPrintf ( + if (pAuthorName) { + + epicsPrintf ( +"Please contact \"%s\"\n", pAuthorName); + + epicsPrintf ( +"(the author of this software) or else send the text of this message to\n"); + + epicsPrintf ( +"\"tech-talk@aps.anl.gov\"\n"); + + } + else { + + epicsPrintf ( "Please contact the author of this software or else send the text of\n"); - epicsPrintf ( + epicsPrintf ( "this message to \"tech-talk@aps.anl.gov\"\n"); + } + abort (); } diff --git a/src/libCom/assertVX.c b/src/libCom/assertVX.c index 2153b6991..2b31ded21 100644 --- a/src/libCom/assertVX.c +++ b/src/libCom/assertVX.c @@ -27,6 +27,9 @@ * Modification Log: * ----------------- * $Log$ + * Revision 1.3 1995/08/12 01:00:07 jhill + * use $log in header + * *************************************************************************** */ @@ -49,7 +52,8 @@ * calls taskSuspend() instead of exit() so that we can debug * the problem. */ -void epicsAssert (const char *pFile, const unsigned line, const char *pMsg) +void epicsAssert (const char *pFile, const unsigned line, const char *pMsg, + const char *pAuthorName) { int taskId = taskIdSelf(); @@ -60,13 +64,27 @@ void epicsAssert (const char *pFile, const unsigned line, const char *pMsg) pFile, line); - epicsPrintf ( + if (pAuthorName) { + + epicsPrintf ( "Please send a copy of the output from \"tt (0x%x)\" and a copy of this message\n", taskId); - epicsPrintf ( + epicsPrintf ( +"to \"%s\" (the author of this software) or \"tech-talk@aps.anl.gov\"\n", pAuthorName); + + } + else { + + epicsPrintf ( +"Please send a copy of the output from \"tt (0x%x)\" and a copy of this message\n", + taskId); + + epicsPrintf ( "to the author or \"tech-talk@aps.anl.gov\"\n"); + } + taskSuspend (taskId); }