no more Logf(), only use debugf()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@473 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-05-06 11:24:34 +00:00
parent 9dff75fcb9
commit 00f090ff1c
3 changed files with 2 additions and 30 deletions

View file

@ -21,7 +21,7 @@ int x11_open(char *name, int opts)
if(name[0] == '/') {
sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name);
Logf("We open the real file '%s'", buffer);
debugf("We open the real file '%s'", buffer);
return open(buffer, opts);
}
return open(name, opts);

View file

@ -67,34 +67,6 @@ char *defaults [] = {
0
};
#define LOGFILE "xgui.log"
void Logf(char *fmt, ...)
{
va_list args;
FILE *log;
struct tm *t;
time_t now=time(NULL);
va_start(args, fmt);
t = localtime(&now);
log = fopen(LOGFILE, "a");
if(log) {
fprintf(log, "%02d:%02d:%02d ",
t->tm_hour, t->tm_min, t->tm_sec);
vfprintf(log, fmt, args);
fprintf(log, "\n");
fclose(log);
}
fprintf(stderr, "%02d:%02d:%02d ",
t->tm_hour, t->tm_min, t->tm_sec);
vfprintf(stderr, fmt, args);
fprintf(stderr, "\n");
va_end(args);
}
void init_window ()
{
XGCValues gcv;