aboutsummaryrefslogtreecommitdiffstats
path: root/drv_LEDMatrix.c
diff options
context:
space:
mode:
authorharbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-08-13 18:45:25 +0000
committerharbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-08-13 18:45:25 +0000
commit1e0c4359a63a0492dce3a1e990d8938e8d0b5147 (patch)
tree962db3ef9a548de3ab873f427d16f1548b9fd530 /drv_LEDMatrix.c
parent763788fd716a2c8f5064c913d35d10973c621ef9 (diff)
downloadlcd4linux-1e0c4359a63a0492dce3a1e990d8938e8d0b5147.tar.gz
[lcd4linux @ 2006-08-13 18:45:25 by harbaum]
Little cleanup ... git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@693 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_LEDMatrix.c')
-rw-r--r--drv_LEDMatrix.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drv_LEDMatrix.c b/drv_LEDMatrix.c
index f6fdee3..2df74fd 100644
--- a/drv_LEDMatrix.c
+++ b/drv_LEDMatrix.c
@@ -1,4 +1,4 @@
-/* $Id: drv_LEDMatrix.c,v 1.6 2006/08/13 18:14:03 harbaum Exp $
+/* $Id: drv_LEDMatrix.c,v 1.7 2006/08/13 18:45:25 harbaum Exp $
*
* LED matrix driver for LCD4Linux
* (see http://www.harbaum.org/till/ledmatrix for hardware)
@@ -23,6 +23,9 @@
*
*
* $Log: drv_LEDMatrix.c,v $
+ * Revision 1.7 2006/08/13 18:45:25 harbaum
+ * Little cleanup ...
+ *
* Revision 1.6 2006/08/13 18:14:03 harbaum
* Added KVV plugin
*
@@ -151,7 +154,7 @@ static void drv_LEDMatrix_blit(const int row, const int col, const int height, c
// wait 1 sec for ack
if ((i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv)) < 0) {
- perror("select");
+ info("%s: Select error: %s", Name, strerror(errno));
}
if (FD_ISSET(sock, &rfds)) {
@@ -159,14 +162,14 @@ static void drv_LEDMatrix_blit(const int row, const int col, const int height, c
fromlen = sizeof(dsp_addr);
i = recvfrom(sock, reply, sizeof(reply), 0, (struct sockaddr *) &cli_addr, &fromlen);
if (i < 0) {
- perror("recvfrom");
+ info("%s: Receive error: %s", Name, strerror(errno));
} else {
if ((i == 2) && (reply[0] == DSP_CMD_ACK) && (reply[1] == DSP_CMD_IMAGE)) {
ack = 1;
// } else if((i > 1) && (reply[0] == DSP_CMD_IR)) {
// ir_receive(reply+1, i-1);
} else {
- fprintf(stderr, "Unexpected reply message\n");
+ info("%s: Unexpected reply message", Name);
}
}
}