summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryangwei <[email protected]>2023-09-18 14:41:05 +0800
committeryangwei <[email protected]>2023-09-19 17:52:54 +0800
commit4d30bc177990ed5854760f54d9b88bf551079e1b (patch)
treef2f3b97494436eac16df081c86fb3f72b66a9944 /src
parent1be954da4f8a906c2d616211ebc43786de14f1d1 (diff)
🌈 style(calc_reserved_hdr_len log): 增加错误日志输出信息
Diffstat (limited to 'src')
-rw-r--r--src/packet_io/sendpacket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/packet_io/sendpacket.c b/src/packet_io/sendpacket.c
index 3397289..d6af9b4 100644
--- a/src/packet_io/sendpacket.c
+++ b/src/packet_io/sendpacket.c
@@ -1124,12 +1124,13 @@ static int calc_reserved_hdr_len(struct streaminfo *stream, int *net_layer_type,
default:
/* to do */
- sapp_runtime_log(30, "calc_reserved_hdr_len(): Not support addrtype:%d\n", stream->addr.addrtype);
+ sapp_runtime_log(RLOG_LV_FATAL, "calc_reserved_hdr_len(): Not support addrtype:%d\n", stream->addr.addrtype);
reserved_hdr_len = -1;
break;
}
if(reserved_hdr_len < 0){
+ sapp_runtime_log(RLOG_LV_FATAL, "calc_reserved_hdr_len() < 0 stream_type:%d, addrtype:%d\n", stream->type, stream->addr.addrtype);
return -1;
}
@@ -1157,6 +1158,7 @@ static int calc_reserved_hdr_len(struct streaminfo *stream, int *net_layer_type,
pfather_hdr_len = calc_reserved_hdr_len((struct streaminfo *)stream_pr->pfather_pr, net_layer_type, send_stream_dir);
if(pfather_hdr_len < 0){
+ sapp_runtime_log(RLOG_LV_FATAL, "pfather_hdr_len < 0 stream_type:%d, addrtype:%d\n", stream->type, stream->addr.addrtype);
return -1;
}