fix sms cpp_demo

Change-Id: Idcd0445a6c58a07b6b466ed296bc4500412b390e
diff --git a/mbtk/test/liblynq_lib_t106/lynq-qser-sms-demo.cpp b/mbtk/test/liblynq_lib_t106/lynq-qser-sms-demo.cpp
index 975c309..dc8f9af 100755
--- a/mbtk/test/liblynq_lib_t106/lynq-qser-sms-demo.cpp
+++ b/mbtk/test/liblynq_lib_t106/lynq-qser-sms-demo.cpp
@@ -9,6 +9,7 @@
 #include <ctype.h>

 

 #include"lynq-qser-sms-demo.h"

+#include "mbtk_log.h"

 

 

 #define SMS_BUF  64

@@ -17,11 +18,11 @@
 int flag_init = 0;

 

 typedef uint32_t sim_client_handle_type;

-sms_client_handle_type  ph_sms = 2022;

+//sms_client_handle_type  ph_sms = 2022;

 sms_client_handle_type  h_sms = 2022;

 

 

-int (*qser_sms_client_init)(sms_client_handle_type  *ph_sms);

+int (*qser_sms_client_init)(sms_client_handle_type  *h_sms);

 int (*qser_sms_client_deinit)(sms_client_handle_type h_sms);

 int (*qser_sms_send_sms)(sms_client_handle_type h_sms, QSER_sms_info_t *pt_sms_info);

 int (*qser_sms_addrxmsghandler)(QSER_SMS_RxMsgHandlerFunc_t handlerPtr, void* contextPtr);

@@ -62,6 +63,7 @@
 {

     int ret    = 0;

     //char phnum[SMS_BUF]={0};

+    mbtk_log_init("radio", "MBTK");

 

     const char *lynq_libpath_sms = "/lib/liblynq-qser-sms.so";

     void *dlHandle_sms = dlopen(lynq_libpath_sms, RTLD_NOW);

@@ -78,10 +80,10 @@
         exit(1);

     }

     

-    qser_sms_client_init = (int(*)(sms_client_handle_type  *ph_sms))dlsym(dlHandle_sms,"qser_sms_client_init");

+    qser_sms_client_init = (int(*)(sms_client_handle_type  *h_sms))dlsym(dlHandle_sms,"qser_sms_client_init");

     if(NULL != qser_sms_client_init)

     {

-        ret = qser_sms_client_init(&ph_sms);

+        ret = qser_sms_client_init(&h_sms);

         if(ret == 0)

         {

             printf("Run qser_sms_client_init\n");