T108 sim Voie data network sms 支持双卡 ql 接口第一版

Change-Id: If5a9fb81971258bb5a3d811f3e4562b2df351853
diff --git a/mbtk/test/libql_lib_v2/ql_sim_test.c b/mbtk/test/libql_lib_v2/ql_sim_test.c
index f71d93e..6cb4787 100755
--- a/mbtk/test/libql_lib_v2/ql_sim_test.c
+++ b/mbtk/test/libql_lib_v2/ql_sim_test.c
@@ -70,7 +70,7 @@
     QL_SIM_APP_TYPE_E app_type;
 
     printf("test ql_sim_get_imsi: \n");
-    printf("please enter slot(1 or 2): ");
+    printf("please enter slot(1 or 2): \n");
     scanf("%d", &input);
     getchar();
     if (1 == input)
@@ -128,7 +128,7 @@
     QL_SIM_SLOT_E slot;
 
     printf("test ql_sim_get_iccid: \n");
-    printf("please enter slot(1 or 2): ");
+    printf("please enter slot(1 or 2): \n");
     scanf("%d", &input);
     getchar();
     if (1 == input)
@@ -156,6 +156,7 @@
     }
 }
 
+
 static void item_ql_sim_get_phone_num(void)
 {
     int ret = 0;
@@ -165,7 +166,7 @@
     QL_SIM_APP_TYPE_E app_type;
 
     printf("test ql_sim_get_phone_num: \n");
-    printf("please enter slot(1 or 2): ");
+    printf("please enter slot(1 or 2): \n");
     scanf("%d", &input);
     getchar();
     if (1 == input)
@@ -182,7 +183,7 @@
         return;
     }
 
-    printf("please enter app type(0-unknown, 1-3gpp, 2-3gpp2, 3-isim): ");
+    printf("please enter app type(0-unknown, 1-3gpp, 2-3gpp2, 3-isim): \n");
     scanf("%d", &input);
     getchar();
     switch (input)
@@ -203,7 +204,7 @@
             printf("bad app type: %d\n", input);
             return;
     }
-    
+
     ret = ql_sim_get_phone_num(slot, app_type, num, sizeof(num));
     if (ret == QL_ERR_OK)
     {
@@ -288,7 +289,7 @@
     QL_SIM_PIN_E pin;
 
     printf("test ql_sim_enable_pin: \n");
-    printf("please enter slot(1 or 2): ");
+    printf("please enter slot(1 or 2): \n");
     scanf("%d", &input);
     getchar();
     if (1 == input)
@@ -393,7 +394,7 @@
     QL_SIM_PIN_E pin;
 
     printf("test ql_sim_disable_pin: \n");
-    printf("please enter slot(1 or 2): ");
+    printf("please enter slot(1 or 2): \n");
     scanf("%d", &input);
     getchar();
     if (1 == input)
@@ -410,7 +411,7 @@
         return;
     }
 
-    printf("please enter app type(0-unknown, 1-3gpp, 2-3gpp2, 3-isim): ");
+    printf("please enter app type(0-unknown, 1-3gpp, 2-3gpp2, 3-isim): \n");
     scanf("%d", &input);
     getchar();
     switch (input)
@@ -432,7 +433,7 @@
             return;
     }
 
-    printf("please enter pin(1 or 2): ");
+    printf("please enter pin(1 or 2): \n");
     scanf("%d", &input);
     getchar();
     if (1 == input)
@@ -449,7 +450,7 @@
         return;
     }
 
-    printf("please enter pin value(at most %d digit): ", QL_SIM_PIN_MAX);
+    printf("please enter pin value(at most %d digit): \n", QL_SIM_PIN_MAX);
     if (NULL == fgets(pin_value, sizeof(pin_value), stdin))
     {
         printf("can not read pin value\n");
@@ -463,7 +464,7 @@
     }
     printf("pin value: %s\n", pin_value);
     
-    printf("proceed? [y/n]: ");
+    printf("proceed? [y/n]: \n");
     c = getchar();
     if ('\n' != c)
     {
@@ -498,7 +499,7 @@
     QL_SIM_PIN_E pin;
 
     printf("test ql_sim_verify_pin: \n");
-    printf("please enter slot(1 or 2): ");
+    printf("please enter slot(1 or 2): \n");
     scanf("%d", &input);
     getchar();
     if (1 == input)
@@ -515,7 +516,7 @@
         return;
     }
 
-    printf("please enter app type(0-unknown, 1-3gpp, 2-3gpp2, 3-isim): ");
+    printf("please enter app type(0-unknown, 1-3gpp, 2-3gpp2, 3-isim): \n");
     scanf("%d", &input);
     getchar();
     switch (input)
@@ -537,7 +538,7 @@
             return;
     }
 
-    printf("please enter pin(1 or 2): ");
+    printf("please enter pin(1 or 2): \n");
     scanf("%d", &input);
     getchar();
     if (1 == input)
@@ -554,7 +555,7 @@
         return;
     }
 
-    printf("please enter pin value(at most %d digit): ", QL_SIM_PIN_MAX);
+    printf("please enter pin value(at most %d digit): \n", QL_SIM_PIN_MAX);
     if (NULL == fgets(pin_value, sizeof(pin_value), stdin))
     {
         printf("can not read pin value\n");
@@ -568,7 +569,7 @@
     }
     printf("pin value: %s\n", pin_value);
     
-    printf("proceed? [y/n]: ");
+    printf("proceed? [y/n]: \n");
     c = getchar();
     if ('\n' != c)
     {
@@ -605,7 +606,7 @@
     QL_SIM_PIN_E pin;
 
     printf("test ql_sim_change_pin: \n");
-    printf("please enter slot(1 or 2): ");
+    printf("please enter slot(1 or 2): \n");
     scanf("%d", &input);
     getchar();
     if (1 == input)
@@ -622,7 +623,7 @@
         return;
     }
 
-    printf("please enter app type(0-unknown, 1-3gpp, 2-3gpp2, 3-isim): ");
+    printf("please enter app type(0-unknown, 1-3gpp, 2-3gpp2, 3-isim): \n");
     scanf("%d", &input);
     getchar();
     switch (input)
@@ -644,7 +645,7 @@
             return;
     }
 
-    printf("please enter pin(1 or 2): ");
+    printf("please enter pin(1 or 2): \n");
     scanf("%d", &input);
     getchar();
     if (1 == input)
@@ -661,7 +662,7 @@
         return;
     }
 
-    printf("please enter old pin value(at most %d digit): ", QL_SIM_PIN_MAX);
+    printf("please enter old pin value(at most %d digit): \n", QL_SIM_PIN_MAX);
     if (NULL == fgets(old_pin_value, sizeof(old_pin_value), stdin))
     {
         printf("can not read old pin value\n");
@@ -674,7 +675,7 @@
         old_len--;
     }
 
-    printf("please enter new pin value(at most %d digit): ", QL_SIM_PIN_MAX);
+    printf("please enter new pin value(at most %d digit): \n", QL_SIM_PIN_MAX);
     if (NULL == fgets(new_pin_value, sizeof(new_pin_value), stdin))
     {
         printf("can not read new pin value\n");
@@ -743,7 +744,7 @@
         return;
     }
 
-    printf("please enter app type(0-unknown, 1-3gpp, 2-3gpp2, 3-isim): ");
+    printf("please enter app type(0-unknown, 1-3gpp, 2-3gpp2, 3-isim): \n");
     scanf("%d", &input);
     getchar();
     switch (input)
@@ -765,7 +766,7 @@
             return;
     }
 
-    printf("please enter pin(1 or 2): ");
+    printf("please enter pin(1 or 2): \n");
     scanf("%d", &input);
     getchar();
     if (1 == input)
@@ -782,7 +783,7 @@
         return;
     }
 
-    printf("please enter puk value(at most %d digit): ", QL_SIM_PIN_MAX);
+    printf("please enter puk value(at most %d digit): \n", QL_SIM_PIN_MAX);
     if (NULL == fgets(puk_value, sizeof(puk_value), stdin))
     {
         printf("can not read old pin value\n");
@@ -795,7 +796,7 @@
         len--;
     }
 
-    printf("please enter new pin value(at most %d digit): ", QL_SIM_PIN_MAX);
+    printf("please enter new pin value(at most %d digit): \n", QL_SIM_PIN_MAX);
     if (NULL == fgets(new_pin_value, sizeof(new_pin_value), stdin))
     {
         printf("can not read new pin value\n");