aboutsummaryrefslogtreecommitdiffstats
path: root/HD44780.c
diff options
context:
space:
mode:
authorreinelt <>2002-08-17 14:14:21 +0000
committerreinelt <>2002-08-17 14:14:21 +0000
commitc83e3395fdfe759255c037109604463ef034bb15 (patch)
treefa96b475f95788769798d20b9434accce4d475df /HD44780.c
parent011dae42e1add1f09fafec9125077afd38a9a837 (diff)
downloadlcd4linux-c83e3395fdfe759255c037109604463ef034bb15.tar.gz
[lcd4linux @ 2002-08-17 14:14:21 by reinelt]
USBLCD fixes
Diffstat (limited to 'HD44780.c')
-rw-r--r--HD44780.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/HD44780.c b/HD44780.c
index b9f0f5f..11cae9b 100644
--- a/HD44780.c
+++ b/HD44780.c
@@ -1,4 +1,4 @@
-/* $Id: HD44780.c,v 1.21 2002/04/30 07:20:15 reinelt Exp $
+/* $Id: HD44780.c,v 1.22 2002/08/17 14:14:21 reinelt Exp $
*
* driver for display modules based on the HD44780 chip
*
@@ -20,6 +20,10 @@
*
*
* $Log: HD44780.c,v $
+ * Revision 1.22 2002/08/17 14:14:21 reinelt
+ *
+ * USBLCD fixes
+ *
* Revision 1.21 2002/04/30 07:20:15 reinelt
*
* implemented the new ndelay(nanoseconds) in all parallel port drivers
@@ -349,7 +353,7 @@ static int HD_open (void)
debug ("using ppdev %s", PPdev);
PPfd=open(PPdev, O_RDWR);
if (PPfd==-1) {
- error ("open(%s) failed: %s", PPdev, strerror(errno));
+ error ("HD44780: open(%s) failed: %s", PPdev, strerror(errno));
return -1;
}
@@ -362,7 +366,7 @@ static int HD_open (void)
#endif
if (ioctl(PPfd, PPCLAIM)) {
- error ("ioctl(%s, PPCLAIM) failed: %d %s", PPdev, errno, strerror(errno));
+ error ("HD44780: ioctl(%s, PPCLAIM) failed: %d %s", PPdev, errno, strerror(errno));
return -1;
}
} else
@@ -790,10 +794,10 @@ int HD_quit (void)
if (PPdev) {
debug ("closing ppdev %s", PPdev);
if (ioctl(PPfd, PPRELEASE)) {
- error ("ioctl(%s, PPRELEASE) failed: %s", PPdev, strerror(errno));
+ error ("HD44780: ioctl(%s, PPRELEASE) failed: %s", PPdev, strerror(errno));
}
if (close(PPfd)==-1) {
- error ("close(%s) failed: %s", PPdev, strerror(errno));
+ error ("HD44780: close(%s) failed: %s", PPdev, strerror(errno));
return -1;
}
} else