File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414#include "ime.h"
1515#include "events.h"
1616#include "clipboard.h"
17+ #include <stdio.h>
18+ #include <stdlib.h>
1719
1820int ptk_init (const wchar_t * name )
1921{
22+ printf ("[ptk] initializing app...\n" );
2023 if (ptk_app_init (name ) != 0 ) {
2124 return -1 ;
2225 }
Original file line number Diff line number Diff line change 1717#include "fbapp.h"
1818#include "x11app.h"
1919#include "x11clipboard.h"
20+ #include <stdio.h>
2021
2122#ifdef PTK_LINUX
2223
@@ -184,19 +185,21 @@ ptk_app_id_t ptk_get_app_id(void)
184185int ptk_app_init (const wchar_t * name )
185186{
186187 linux_app .id = PTK_APP_ID_LINUX ;
188+ printf ("[app] initializing linux app...\n" );
187189#ifdef PTK_HAS_LIBX11
190+ logger_error ("[app] x11 support detected, trying to use x11app engine...\n" );
188191 ptk_x11app_driver_init (& linux_app .app );
189192 ptk_x11window_driver_init (& linux_app .window );
190193 if (linux_app .app .init (name ) == 0 ) {
191- logger_debug ("[app] use engine: x11app\n" );
194+ logger_error ("[app] use engine: x11app\n" );
192195 linux_app .id = PTK_APP_ID_LINUX_X11 ;
193196 linux_app .active = true;
194197 return 0 ;
195198 }
196199 memset (& linux_app .app , 0 , sizeof (linux_app .app ));
197200 memset (& linux_app .window , 0 , sizeof (linux_app .window ));
198201#endif
199- logger_debug ("[app] use engine: fbapp\n" );
202+ logger_error ("[app] use engine: fbapp\n" );
200203 ptk_fbapp_driver_init (& linux_app .app );
201204 ptk_fbwindow_driver_init (& linux_app .window );
202205 if (linux_app .app .init (name ) == 0 ) {
Original file line number Diff line number Diff line change 1111
1212#include <math.h>
1313#include <stdlib.h>
14+ #include <stdio.h>
1415#include <yutil.h>
1516#include <ptk.h>
1617#include <ptk/steptimer.h>
@@ -273,6 +274,7 @@ void lcui_app_init(void)
273274 lcui_app .fps_window_start = now ;
274275 lcui_app .frames_this_second = 0 ;
275276 lcui_app .frames_per_second = 0 ;
277+ printf ("[app] initializing app...\n" );
276278 if (ptk_init (L"LCUI Application" ) != 0 ) {
277279 abort ();
278280 }
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ static const ctest_suite_t suites[] = {
4545
4646int main (int argc , char * * argv )
4747{
48- logger_set_level (LOGGER_LEVEL_ERROR );
48+ logger_set_level (LOGGER_LEVEL_ALL );
4949 if (ctest_parse_args (argc , argv ) != 0 ) {
5050 return 1 ;
5151 }
You can’t perform that action at this time.
0 commit comments