2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 /* ReallyAbort: called from assert. May/85 */
11 #include <afsconfig.h>
12 #include <afs/param.h>
14 #ifdef HAVE_SYS_TIME_H
31 #define TIMESTAMP_BUFFER_SIZE 26 /* including the null */
32 #define TIMESTAMP_NEWLINE_POS 24 /* offset to the newline placed by ctime */
35 AssertionFailed(char *file, int line)
37 char tdate[TIMESTAMP_BUFFER_SIZE];
41 (void)afs_ctime(&when, tdate, sizeof(tdate));
42 tdate[TIMESTAMP_NEWLINE_POS] = ' ';
43 fprintf(stderr, "%sAssertion failed! file %s, line %d.\n", tdate, file,