-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/shmtrans.c,v 6.10 2006-04-11 17:39:31 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/shmtrans.c,v 6.11 2008-04-08 13:58:14 hadaq Exp $";
#define _POSIX_C_SOURCE 199309L
#include <syslog.h>
-
#include "psxshm.h"
#include "hadtuqueue.h"
case ENOENT:
break;
default:
- syslog(LOG_DEBUG, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
+ syslog(LOG_ERR, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
goto bailOut1;
break;
}
}
if (0 > (pageSize = sysconf(_SC_PAGESIZE))) {
- syslog(LOG_DEBUG, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
+ syslog(LOG_ERR, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
goto bailOut1;
}
shmSize = 2 * (size + SPACE_IN_FRONT);
? (shmSize & ~(pageSize - 1)) + pageSize : shmSize;
if (NULL == (my->shm = PsxShm_open(ipcName, O_CREAT | O_RDWR, S_IRWXU, shmSize))) {
- syslog(LOG_DEBUG, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
+ syslog(LOG_ERR, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
goto bailOut1;
}
addr = my->shm->addr;
case ENOENT:
break;
default:
- syslog(LOG_DEBUG, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
+ syslog(LOG_ERR, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
goto bailOut2;
break;
}
}
if ((sem_t *) -1 == (my->switchRequest = sem_open(ipcName, O_CREAT | O_EXCL, S_IRWXU, 0))) {
- syslog(LOG_DEBUG, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
+ syslog(LOG_ERR, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
goto bailOut2;
}
strcpy(ipcName, my->name);
case ENOENT:
break;
default:
- syslog(LOG_DEBUG, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
+ syslog(LOG_ERR, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
goto bailOut3;
break;
}
}
if ((sem_t *) -1 == (my->switchComplete = sem_open(ipcName, O_CREAT | O_EXCL, S_IRWXU, 0))) {
- syslog(LOG_DEBUG, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
+ syslog(LOG_ERR, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
goto bailOut3;
}
return my;