mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
[lcd4linux @ 2001-03-09 13:08:11 by ltoetsch]
Added Text driver git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@105 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
9
debug.c
9
debug.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: debug.c,v 1.1 2000/11/28 20:20:38 reinelt Exp $
|
||||
/* $Id: debug.c,v 1.2 2001/03/09 13:08:11 ltoetsch Exp $
|
||||
*
|
||||
* debug() and error() functions
|
||||
*
|
||||
@@ -20,6 +20,9 @@
|
||||
*
|
||||
*
|
||||
* $Log: debug.c,v $
|
||||
* Revision 1.2 2001/03/09 13:08:11 ltoetsch
|
||||
* Added Text driver
|
||||
*
|
||||
* Revision 1.1 2000/11/28 20:20:38 reinelt
|
||||
*
|
||||
* added debug.c
|
||||
@@ -62,6 +65,10 @@ void message (int level, const char *format, ...)
|
||||
va_end(ap);
|
||||
|
||||
if (foreground) {
|
||||
#ifdef WITH_Text
|
||||
extern int curs_err(char *);
|
||||
if (!curs_err(buffer))
|
||||
#endif
|
||||
fprintf (level?stdout:stderr, "%s\n", buffer);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user