FACT++  1.0
int getLogLevel ( IssueStruct *  issueParam)

Definition at line 2826 of file feeserver.c.

References createLogMessage(), Memory::malloc(), and sprintf().

Referenced by command_handler().

2826  {
2827  char msg[50];
2828 
2829  (*issueParam).result = (char*) malloc(sizeof(unsigned int));
2830  if ((*issueParam).result == 0) {
2831  (*issueParam).size = 0;
2832  return FEE_INSUFFICIENT_MEMORY;
2833  }
2834 
2835  // copy current update rate to ACK result
2836  memcpy((*issueParam).result, &logLevel, sizeof(unsigned int));
2837  (*issueParam).size = sizeof(unsigned int);
2838 # ifdef __DEBUG
2839  printf("Requested loglevel is %d\n", logLevel);
2840  fflush(stdout);
2841 # endif
2842  msg[sprintf(msg, "Requested LogLevel is %d.", logLevel)] = 0;
2843  createLogMessage(MSG_DEBUG, msg, 0);
2844 
2845  return FEE_OK;
2846 }
void * malloc()
Definition: EventBuilder.cc:99
void createLogMessage(unsigned int type, char *description, char *origin)
Definition: feeserver.c:1530
static unsigned int logLevel
Definition: feeserver.c:211
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: