Subversion Repositories Kolibri OS

Rev

Rev 5270 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5270 Rev 6587
Line 148... Line 148...
148
    };
148
    };
149
    return len;
149
    return len;
150
}
150
}
151
 
151
Line 152... Line -...
152
int xf86DrvMsg(int skip, int code, const char* format, ...)
-
 
153
{
-
 
154
    char      txtbuf[1024];
-
 
155
    unsigned  writes;
-
 
156
    va_list   ap;
-
 
157
 
-
 
158
    int       len = 0;
-
 
159
 
-
 
160
    va_start(ap, format);
-
 
161
    if (format)
-
 
162
        len = vsnprintf(txtbuf, 1024, format, ap);
-
 
163
    va_end(ap);
-
 
164
 
-
 
165
    if( len )
-
 
166
    {
-
 
167
        SysMsgBoardStr(txtbuf);
-
 
168
 
-
 
169
        if(dbgfile.path)
-
 
170
        {
-
 
171
            write_file(dbgfile.path,txtbuf,dbgfile.offset,len,&writes);
-
 
172
            dbgfile.offset+=writes;
-
 
173
        };
-
 
174
    };
-
 
175
    return len;
-
 
176
}
-
 
177
-
 
178
-