diff --git a/openair2/UTIL/OMG/defs.h b/openair2/UTIL/OMG/defs.h index ae34d84291fff5078a1020ba78d8f055d907ea08..9c98374c0056489e19274a28823d5e92873bc7d3 100644 --- a/openair2/UTIL/OMG/defs.h +++ b/openair2/UTIL/OMG/defs.h @@ -78,7 +78,7 @@ typedef struct mobility_struct mobility_struct; /*!< The typedef that reflects a struct node_struct { int id; /*!< The identifier of the node in question */ int gid; /*!< given id of node used for trace mobility */ - int type; /*!< The node's type, it is one of types enumarated in #node_types */ + node_types type; /*!< The node's type, it is one of types enumarated in #node_types */ int mobile; /*!< The node status: static or mobile */ double x_pos; /*!< The X coordinate of the current location of the node */ double y_pos; /*!< The Y coordinate of the current location of the node */ diff --git a/openair2/UTIL/OMG/static.c b/openair2/UTIL/OMG/static.c index c83f1c83c4bdced2541b6f12fe3524a2332a1c99..6a7874782663a695cb423ad2ba8fb00e4769072b 100644 --- a/openair2/UTIL/OMG/static.c +++ b/openair2/UTIL/OMG/static.c @@ -131,8 +131,8 @@ place_static_node (node_struct * node) node->mob->journey_time = 0.0; LOG_I (OMG, - "[STATIC] Initial position of node ID: %d type(%d): (X = %.2f, Y = %.2f) speed = 0.0\n", - node->id, node->type, node->x_pos, node->y_pos); + "[STATIC] Initial position of node ID: %d type(%d: %s): (X = %.2f, Y = %.2f) speed = 0.0\n", + node->id, node->type, (node->type==eNB)?"eNB":(node->type==UE)?"UE":"Relay", node->x_pos, node->y_pos); node_vector_end[node->type] = (node_list *) add_entry (node, node_vector_end[node->type]);