diff options
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/play.c | 2 | ||||
-rw-r--r-- | uisimulator/x11/io.c | 2 | ||||
-rw-r--r-- | uisimulator/x11/uibasic.c | 28 |
3 files changed, 2 insertions, 30 deletions
diff --git a/uisimulator/play.c b/uisimulator/play.c index 584c35e19e..7031fd208e 100644 --- a/uisimulator/play.c +++ b/uisimulator/play.c | |||
@@ -42,7 +42,7 @@ void playtune(char *dir, char *file) | |||
42 | sprintf(buffer, "%s/%s", dir, file); | 42 | sprintf(buffer, "%s/%s", dir, file); |
43 | 43 | ||
44 | if(mp3info(&mp3, buffer)) { | 44 | if(mp3info(&mp3, buffer)) { |
45 | Logf("Failure!"); | 45 | debugf("id3 failure!"); |
46 | good=0; | 46 | good=0; |
47 | } | 47 | } |
48 | #ifdef HAVE_LCD_BITMAP | 48 | #ifdef HAVE_LCD_BITMAP |
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" | ||
71 | void 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 | |||
98 | void init_window () | 70 | void init_window () |
99 | { | 71 | { |
100 | XGCValues gcv; | 72 | XGCValues gcv; |