Optimize the output of log and stat
This commit is contained in:
@@ -164,7 +164,7 @@ void packet_set_ctrl(struct packet *pkt)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to set ctrl");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to set ctrl");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ int packet_is_ctrl(const struct packet *pkt)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to check ctrl");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to check ctrl");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -196,7 +196,7 @@ void packet_set_direction(struct packet *pkt, enum packet_direction dir)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to set direction");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to set direction");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -214,7 +214,7 @@ enum packet_direction packet_get_direction(const struct packet *pkt)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to get direction");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to get direction");
|
||||
}
|
||||
|
||||
return dir;
|
||||
@@ -233,7 +233,7 @@ void packet_set_session_id(struct packet *pkt, uint64_t sess_id)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to set session id");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to set session id");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ uint64_t packet_get_session_id(const struct packet *pkt)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to get session id");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to get session id");
|
||||
}
|
||||
|
||||
return sess_id;
|
||||
@@ -273,7 +273,7 @@ void packet_set_domain(struct packet *pkt, uint64_t domain)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to set domain");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to set domain");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ uint64_t packet_get_domain(const struct packet *pkt)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to get domain");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to get domain");
|
||||
}
|
||||
|
||||
return domain;
|
||||
@@ -313,7 +313,7 @@ void packet_set_route_ctx(struct packet *pkt, const struct route_ctx *ctx)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to set route ctx");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to set route ctx");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -332,7 +332,7 @@ void packet_get_route_ctx(const struct packet *pkt, struct route_ctx *ctx)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to get route ctx");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to get route ctx");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ void packet_set_sid_list(struct packet *pkt, const struct sid_list *list)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to set sid list");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to set sid list");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -364,7 +364,7 @@ void packet_get_sid_list(const struct packet *pkt, struct sid_list *list)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to get sid list");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to get sid list");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -381,7 +381,7 @@ void packet_prepend_sid_list(struct packet *pkt, const struct sid_list *list)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to prepend sid list");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to prepend sid list");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -398,6 +398,6 @@ void packet_append_sid_list(struct packet *pkt, const struct sid_list *list)
|
||||
}
|
||||
else
|
||||
{
|
||||
PACKET_LOG_ERROR("packet origin is not marsio, failed to append sid list");
|
||||
PACKET_LOG_WARN("packet origin is not marsio, failed to append sid list");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user