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>
26 #define TIMESTAMP_BUFFER_SIZE 26 /* including the null */
27 #define TIMESTAMP_NEWLINE_POS 24 /* offset to the newline placed by ctime */
30 AssertionFailed(char *file, int line)
32 char tdate[TIMESTAMP_BUFFER_SIZE];
36 (void)afs_ctime(&when, tdate, sizeof(tdate));
37 tdate[TIMESTAMP_NEWLINE_POS] = ' ';
38 fprintf(stderr, "%sAssertion failed! file %s, line %d.\n", tdate, file,