data_call: 更新代码,兼容T106
Change-Id: Id693c13f44bb16052a258eb7697e559109bb093a
diff --git a/mbtk/test/liblynq_lib_t106/lynq-qser-data-demo.cpp b/mbtk/test/liblynq_lib_t106/lynq-qser-data-demo.cpp
index 221e25b..c3cb0a6 100755
--- a/mbtk/test/liblynq_lib_t106/lynq-qser-data-demo.cpp
+++ b/mbtk/test/liblynq_lib_t106/lynq-qser-data-demo.cpp
@@ -177,11 +177,12 @@
char buf_sec_dns[64] = {0};
printf("DATA_DEMO_CALL_BACK: profile_idx=%d, name=%s, ip_family=%d, state=%d, error=%d\n"
, state->profile_idx, state->name, state->ip_family, state->state, state->err);
+ #if 1
printf("DATA_DEMO_CALL_BACK: v4.ip=%s\n"
, inet_ntoa(state->v4.ip));
printf("DATA_DEMO_CALL_BACK: v4.gateway=%s\n"
, inet_ntoa(state->v4.gateway));
- printf("DATA_DEMO_CALL_BACK: v4.pri_dns=%s, v4.sec_dns=%s\n"
+ printf("DATA_DEMO_CALL_BACK: v4.pri_dns=%s\n"
, inet_ntoa(state->v4.pri_dns));
printf("DATA_DEMO_CALL_BACK: v4.sec_dns=%s\n"
, inet_ntoa(state->v4.sec_dns));
@@ -189,7 +190,10 @@
inet_ntop(AF_INET6, &(state->v6.gateway), buf_gateway, sizeof(buf_gateway));
inet_ntop(AF_INET6, &(state->v6.pri_dns), buf_pri_dns, sizeof(buf_pri_dns));
inet_ntop(AF_INET6, &(state->v6.sec_dns), buf_sec_dns, sizeof(buf_sec_dns));
- printf("DATA_DEMO_CALL_BACK: v6.ip=%s, v6.gateway=%s, v6.pri_dns=%s, v6.sec_dns=%s\n"
- , buf_ip, buf_gateway, buf_pri_dns, buf_sec_dns);
+ printf("DATA_DEMO_CALL_BACK: v6.ip=%s\n", buf_ip);
+ printf("DATA_DEMO_CALL_BACK: v6.gateway=%s\n", buf_gateway);
+ printf("DATA_DEMO_CALL_BACK: v6.pri_dns=%s\n", buf_pri_dns);
+ printf("DATA_DEMO_CALL_BACK: v6.sec_dns=%s\n", buf_sec_dns);
+ #endif
//后续对回调函数中返回值的处理建议放在其它线程中进行,避免阻塞在回调函数中影响后续消息上报
}