Changeset 41632
- Timestamp:
- Jun 2, 2021, 4:06:47 PM (5 years ago)
- Location:
- branches/eam_branches/relphot.20210521/src
- Files:
-
- 2 edited
-
GridOps.c (modified) (1 diff)
-
Shutdown.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/src/GridOps.c
r41625 r41632 19 19 static int NGridCorr = 0; 20 20 21 // PS1: # define NX_CHIP 4900 22 // PS1: # define NY_CHIP 4900 23 // PS1: # define NX_BIN 16 24 // PS1: # define NY_BIN 16 25 21 # if (1) 22 /* PS1 / PS2 values */ 23 # define NX_CHIP 4900 24 # define NY_CHIP 4900 25 # define NX_BIN 16 26 # define NY_BIN 16 27 # else 28 /* test values */ 26 29 # define NX_CHIP 1000 27 30 # define NY_CHIP 1000 28 31 # define NX_BIN 2 29 32 # define NY_BIN 2 33 # endif 30 34 31 35 void initGridBins (void) { -
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.
