Commit 399073ff authored by Lionel Gauthier's avatar Lionel Gauthier

char array "task_name" too short for snprintf

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5592 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 0ce285c4
...@@ -95,6 +95,7 @@ static int hw_subframe; ...@@ -95,6 +95,7 @@ static int hw_subframe;
#include "otg_tx.h" #include "otg_tx.h"
#include "LAYER2/MAC/defs.h" #include "LAYER2/MAC/defs.h"
#include "LAYER2/MAC/vars.h" #include "LAYER2/MAC/vars.h"
#include "LAYER2/MAC/proto.h"
#ifndef CELLULAR #ifndef CELLULAR
#include "RRC/LITE/vars.h" #include "RRC/LITE/vars.h"
#endif #endif
...@@ -227,7 +228,7 @@ static uint32_t downlink_frequency[4] = {1907600000,1907600000,1907 ...@@ -227,7 +228,7 @@ static uint32_t downlink_frequency[4] = {1907600000,1907600000,1907
static int32_t uplink_frequency_offset[4]= {-120000000,-120000000,-120000000,-120000000}; static int32_t uplink_frequency_offset[4]= {-120000000,-120000000,-120000000,-120000000};
static char *conf_config_file_name = NULL; static char *conf_config_file_name = NULL;
#ifdef ITTI_ENABLED #if defined(ENABLE_ITTI)
static char *itti_dump_file = NULL; static char *itti_dump_file = NULL;
#endif #endif
...@@ -809,7 +810,7 @@ static void * eNB_thread_tx(void *param) { ...@@ -809,7 +810,7 @@ static void * eNB_thread_tx(void *param) {
// RTIME time_in,time_out; // RTIME time_in,time_out;
#ifdef RTAI #ifdef RTAI
RT_TASK *task; RT_TASK *task;
char task_name[8]; char task_name[32];
#endif #endif
...@@ -828,9 +829,9 @@ static void * eNB_thread_tx(void *param) { ...@@ -828,9 +829,9 @@ static void * eNB_thread_tx(void *param) {
return 0; return 0;
} }
else { else {
LOG_I(PHY,"[SCHED][eNB] eNB TX thread %d started with id %p on CPU %d\n", LOG_I(PHY,"[SCHED][eNB] eNB TX thread %d started with id %p\n",
proc->subframe, proc->subframe,
task,rtai_cpuid()); task);
} }
#else #else
LOG_I(PHY,"[SCHED][eNB] eNB TX thread %d started on CPU %d\n", LOG_I(PHY,"[SCHED][eNB] eNB TX thread %d started on CPU %d\n",
...@@ -931,7 +932,7 @@ static void * eNB_thread_rx(void *param) { ...@@ -931,7 +932,7 @@ static void * eNB_thread_rx(void *param) {
// RTIME time_in,time_out; // RTIME time_in,time_out;
#ifdef RTAI #ifdef RTAI
RT_TASK *task; RT_TASK *task;
char task_name[8]; char task_name[32];
#endif #endif
#if defined(ENABLE_ITTI) #if defined(ENABLE_ITTI)
...@@ -948,9 +949,9 @@ static void * eNB_thread_rx(void *param) { ...@@ -948,9 +949,9 @@ static void * eNB_thread_rx(void *param) {
return 0; return 0;
} }
else { else {
LOG_I(PHY,"[SCHED][eNB] eNB RX thread %d started with id %p on CPU %d\n", LOG_I(PHY,"[SCHED][eNB] eNB RX thread %d started with id %p\n", /* on CPU %d*/
proc->subframe, proc->subframe,
task,rtai_cpuid()); task); /*,rtai_cpuid()*/
} }
#else #else
LOG_I(PHY,"[SCHED][eNB] eNB RX thread %d started on CPU %d\n", LOG_I(PHY,"[SCHED][eNB] eNB RX thread %d started on CPU %d\n",
...@@ -1157,7 +1158,7 @@ static void *eNB_thread(void *arg) ...@@ -1157,7 +1158,7 @@ static void *eNB_thread(void *arg)
if (!oai_exit) { if (!oai_exit) {
#ifdef RTAI #ifdef RTAI
LOG_D(HW,"[SCHED][eNB] Started eNB thread (id %p) on CPU %d\n",task,rtai_cpuid()); LOG_D(HW,"[SCHED][eNB] Started eNB thread (id %p)\n",task/*" on CPU %d",rtai_cpuid()*/);
#else #else
LOG_I(HW,"[SCHED][eNB] Started eNB thread on CPU %d\n", LOG_I(HW,"[SCHED][eNB] Started eNB thread on CPU %d\n",
sched_getcpu()); sched_getcpu());
...@@ -2452,8 +2453,8 @@ int main(int argc, char **argv) { ...@@ -2452,8 +2453,8 @@ int main(int argc, char **argv) {
//cleanup_pdcp_thread(); //cleanup_pdcp_thread();
#endif #endif
#ifdef RTAI
#ifdef USRP #ifdef USRP
#ifdef RTAI
rt_sem_delete(sync_sem); rt_sem_delete(sync_sem);
stop_rt_timer(); stop_rt_timer();
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment