2771 unsigned int testLogLevel = 0;
2773 if ((*issueParam).size <
sizeof(
unsigned int)) {
2774 (*issueParam).size = 0;
2776 "FeeServer command for setting log level contained invalid parameter.",
2778 return FEE_INVALID_PARAM;
2780 memcpy(&testLogLevel, (*issueParam).command,
sizeof(
unsigned int));
2782 if (testLogLevel > MSG_MAX_VAL) {
2784 printf(
"received invalid log level %d\n", testLogLevel);
2788 "FeeServer command for setting log level contained invalid parameter.",
2790 return FEE_INVALID_PARAM;
2793 status = pthread_mutex_lock(&
log_mut);
2797 printf(
"Lock log mutex error: %d\n", status);
2800 (*issueParam).size = 0;
2803 logLevel = testLogLevel | MSG_ALARM;
2805 status = pthread_mutex_unlock(&
log_mut);
2808 printf(
"Unlock log mutex error: %d\n", status);
2815 printf(
"set new logLevel to %d\n",
logLevel);
2821 (*issueParam).size = 0;
void createLogMessage(unsigned int type, char *description, char *origin)
static pthread_mutex_t log_mut
static unsigned int logLevel
sprintf(name1,"NewService%d", i)