summaryrefslogtreecommitdiff
path: root/uisimulator/x11
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/x11')
-rw-r--r--uisimulator/x11/io.c2
-rw-r--r--uisimulator/x11/uibasic.c28
2 files changed, 1 insertions, 29 deletions
diff --git a/uisimulator/x11/io.c b/uisimulator/x11/io.c
index 974109a7fa..2a94969ce3 100644
--- a/uisimulator/x11/io.c
+++ b/uisimulator/x11/io.c
@@ -21,7 +21,7 @@ int x11_open(char *name, int opts)
21 if(name[0] == '/') { 21 if(name[0] == '/') {
22 sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); 22 sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name);
23 23
24 Logf("We open the real file '%s'", buffer); 24 debugf("We open the real file '%s'", buffer);
25 return open(buffer, opts); 25 return open(buffer, opts);
26 } 26 }
27 return open(name, opts); 27 return open(name, opts);
diff --git a/uisimulator/x11/uibasic.c b/uisimulator/x11/uibasic.c
index 4af667a20b..b47362b9d0 100644
--- a/uisimulator/x11/uibasic.c
+++ b/uisimulator/x11/uibasic.c
@@ -67,34 +67,6 @@ char *defaults [] = {
67 0 67 0
68}; 68};
69 69
70#define LOGFILE "xgui.log"
71void Logf(char *fmt, ...)
72{
73 va_list args;
74 FILE *log;
75 struct tm *t;
76 time_t now=time(NULL);
77
78 va_start(args, fmt);
79
80 t = localtime(&now);
81 log = fopen(LOGFILE, "a");
82 if(log) {
83 fprintf(log, "%02d:%02d:%02d ",
84 t->tm_hour, t->tm_min, t->tm_sec);
85 vfprintf(log, fmt, args);
86 fprintf(log, "\n");
87
88 fclose(log);
89 }
90
91 fprintf(stderr, "%02d:%02d:%02d ",
92 t->tm_hour, t->tm_min, t->tm_sec);
93 vfprintf(stderr, fmt, args);
94 fprintf(stderr, "\n");
95 va_end(args);
96}
97
98void init_window () 70void init_window ()
99{ 71{
100 XGCValues gcv; 72 XGCValues gcv;