aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-06-13 05:11:11 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-06-13 05:11:11 +0000
commite2e3b335b22f9a45b482617a991b6e6f4f4a84a4 (patch)
tree5c941ec6a0e5df8da71556b432ca0247975d10d6
parent74404ae0ab0dcac3ba7b2d0555414f9e8074cdd8 (diff)
downloadlcd4linux-e2e3b335b22f9a45b482617a991b6e6f4f4a84a4.tar.gz
[lcd4linux @ 2003-06-13 05:11:10 by reinelt]
error message cosmetics git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@192 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--lcd4linux.c7
-rw-r--r--seti.c9
-rw-r--r--system.c7
3 files changed, 16 insertions, 7 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index fad7bd5..36e21d4 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -1,4 +1,4 @@
-/* $Id: lcd4linux.c,v 1.37 2003/04/07 06:03:01 reinelt Exp $
+/* $Id: lcd4linux.c,v 1.38 2003/06/13 05:11:11 reinelt Exp $
*
* LCD4Linux
*
@@ -20,6 +20,9 @@
*
*
* $Log: lcd4linux.c,v $
+ * Revision 1.38 2003/06/13 05:11:11 reinelt
+ * error message cosmetics
+ *
* Revision 1.37 2003/04/07 06:03:01 reinelt
* further parallel port abstraction
*
@@ -409,7 +412,7 @@ int main (int argc, char *argv[])
driver=cfg_get("display",NULL);
if (driver==NULL || *driver=='\0') {
- error ("%s: missing 'display' entry!", cfg_file());
+ error ("missing 'display' entry in %s!", cfg_file());
exit (1);
}
diff --git a/seti.c b/seti.c
index 20d7643..ede4b5e 100644
--- a/seti.c
+++ b/seti.c
@@ -1,4 +1,4 @@
-/* $Id: seti.c,v 1.7 2003/02/22 07:53:10 reinelt Exp $
+/* $Id: seti.c,v 1.8 2003/06/13 05:11:11 reinelt Exp $
*
* seti@home specific functions
*
@@ -20,6 +20,9 @@
*
*
* $Log: seti.c,v $
+ * Revision 1.8 2003/06/13 05:11:11 reinelt
+ * error message cosmetics
+ *
* Revision 1.7 2003/02/22 07:53:10 reinelt
* cfg_get(key,defval)
*
@@ -99,12 +102,12 @@ int Seti (double *perc, double *cput)
if (fd==-2) {
char *dir=cfg_get("SetiDir",NULL);
if (dir==NULL || *dir=='\0') {
- error ("%s: missing 'SetiDir' entry!\n", cfg_file());
+ error ("no 'SetiDir' entry in %s!\n", cfg_file());
fd=-1;
return -1;
}
if (strlen(dir)>sizeof(fn)-sizeof(STATEFILE)-2) {
- error ("%s: 'SetiDir' too long!\n", cfg_file());
+ error ("entry 'SetiDir' too long in %s!\n", cfg_file());
fd=-1;
return -1;
}
diff --git a/system.c b/system.c
index 7d091e3..567aed0 100644
--- a/system.c
+++ b/system.c
@@ -1,4 +1,4 @@
-/* $Id: system.c,v 1.26 2003/02/22 07:53:10 reinelt Exp $
+/* $Id: system.c,v 1.27 2003/06/13 05:11:10 reinelt Exp $
*
* system status retreivement
*
@@ -20,6 +20,9 @@
*
*
* $Log: system.c,v $
+ * Revision 1.27 2003/06/13 05:11:10 reinelt
+ * error message cosmetics
+ *
* Revision 1.26 2003/02/22 07:53:10 reinelt
* cfg_get(key,defval)
*
@@ -768,7 +771,7 @@ int Sensor (int index, double *val, double *min, double *max)
snprintf(buffer, 32, "Sensor%d", index);
sensor[index]=cfg_get(buffer, NULL);
if (sensor[index]==NULL || *sensor[index]=='\0') {
- error ("%s: no entry for '%s'", cfg_file(), buffer);
+ error ("no entry for '%s' in %s", buffer, cfg_file());
fd[index]=-1;
return -1;
}