优化demo添加调试打印

Change-Id: Ib5ed4f9ed49e4e42dde23231c3bb7cf3aa5c4b58
diff --git a/mbtk/test/liblynq_lib/lynq_sleep_test.c b/mbtk/test/liblynq_lib/lynq_sleep_test.c
index 4bfbf40..fa2b7fe 100755
--- a/mbtk/test/liblynq_lib/lynq_sleep_test.c
+++ b/mbtk/test/liblynq_lib/lynq_sleep_test.c
@@ -97,7 +97,14 @@
                 printf(">>>>>name=[%s] name_len=[%d]<<<<<\n",t_name, len_name);
 
                 fd_t = qser_wakelock_create(t_name, len_name);
-                printf(">>>>>Output ID NUM =[%d]<<<<<\n",fd_t);
+                if (fd_t == -1)
+                {
+                    printf(">>>>>Output error =[%d]<<<<<\n",fd_t);
+                }
+                else
+                {
+                    printf(">>>>>Output ID NUM =[%d]<<<<<\n",fd_t);
+                }
             }
             break;
         case 3:
@@ -107,7 +114,15 @@
                 fgets(tmp_l, sizeof(tmp_l), stdin);
                 fflush(stdin);
                 fd_t = atoi(tmp_l);
-                qser_wakelock_lock(fd_t);
+                fd_t = qser_wakelock_lock(fd_t);
+                if (fd_t == -1)
+                {
+                    printf(">>>>>Output error =[%d]<<<<<\n",fd_t);
+                }
+                else
+                {
+                    printf(">>>>>Output succuess<<<<<\n");
+                }
             }
             break;
         case 4:
@@ -118,17 +133,35 @@
                 fgets(tmp_ul, sizeof(tmp_ul)-1, stdin);
                 fflush(stdin);
                 fd_t = atoi(tmp_ul);
-                qser_wakelock_unlock(fd_t);
+                fd_t = qser_wakelock_unlock(fd_t);
+                if (fd_t == -1)
+                {
+                    printf(">>>>>Output error =[%d]<<<<<\n",fd_t);
+                }
+                else
+                {
+                    printf(">>>>>Output succuess<<<<<\n");
+                }
             }
             break;
         case 5:
+            {
                 printf(">>>>>Input ID NUM<<<<<\n");
                 char tmp_d[127]={0};
                 memset(tmp_d, 0x00, sizeof(tmp_d));
                 fgets(tmp_d, sizeof(tmp_d)-1, stdin);
                 fflush(stdin);
                 fd_t = atoi(tmp_d);
-                qser_wakelock_destroy(fd_t);
+                fd_t = qser_wakelock_destroy(fd_t);
+                if (fd_t == -1)
+                {
+                    printf(">>>>>Output error =[%d]<<<<<\n",fd_t);
+                }
+                else
+                {
+                    printf(">>>>>Output succuess<<<<<\n");
+                }
+            }
             break;
         case 6:
             {