Changeset 41632 for branches/eam_branches/relphot.20210521/src/Shutdown.c
- Timestamp:
- Jun 2, 2021, 4:06:47 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/src/Shutdown.c
r38986 r41632 10 10 int Shutdown (char *format, ...) { 11 11 va_list argp; 12 char *formatplus;12 char formatplus[1024]; 13 13 14 ALLOCATE (formatplus, char, strlen(format));15 strcpy (formatplus, format);16 s trcat (formatplus, "\n");14 // we cannot allocate this with the ohana allocation tools 15 // because it could deadlock 16 snprintf (formatplus, 1024, "%s\n", format); 17 17 18 18 va_start (argp, format); 19 19 vfprintf (stderr, formatplus, argp); 20 free (formatplus);21 20 va_end (argp); 22 21
Note:
See TracChangeset
for help on using the changeset viewer.
