aboutsummaryrefslogtreecommitdiffstats
path: root/system.c
diff options
context:
space:
mode:
authorreinelt <>2003-06-13 05:11:11 +0000
committerreinelt <>2003-06-13 05:11:11 +0000
commite5a6149a71d496eb1322fec19d4d7a89a476015f (patch)
tree5c941ec6a0e5df8da71556b432ca0247975d10d6 /system.c
parent3cbab922117d3ed096cf33a5b8bd6c957f7a7a48 (diff)
downloadlcd4linux-e5a6149a71d496eb1322fec19d4d7a89a476015f.tar.gz
[lcd4linux @ 2003-06-13 05:11:10 by reinelt]
error message cosmetics
Diffstat (limited to 'system.c')
-rw-r--r--system.c7
1 files changed, 5 insertions, 2 deletions
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;
}