diff options
author | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2012-03-26 04:31:55 +0000 |
---|---|---|
committer | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2012-03-26 04:31:55 +0000 |
commit | 7ae0d560e1d1529d958ca75673176c47f0dcf3b9 (patch) | |
tree | 3a60450a1d3bdc2dea93b82583ffd27edd3d000d | |
parent | 2a72a238872c5a74d9a1d9323a989acd05552e9f (diff) | |
download | lcd4linux-7ae0d560e1d1529d958ca75673176c47f0dcf3b9.tar.gz |
changed error() to info() to avoid syslog flooding
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1183 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r-- | plugin_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin_file.c b/plugin_file.c index a246870..8d6e548 100644 --- a/plugin_file.c +++ b/plugin_file.c @@ -61,7 +61,7 @@ static void my_readline(RESULT * result, RESULT * arg1, RESULT * arg2) reqline = R2N(arg2); fp = fopen(R2S(arg1), "r"); if (!fp) { - error("readline couldn't open file '%s'", R2S(arg1)); + info("readline couldn't open file '%s'", R2S(arg1)); value[0] = '\0'; } else { i = 0; @@ -77,7 +77,7 @@ static void my_readline(RESULT * result, RESULT * arg1, RESULT * arg2) } fclose(fp); if (i <= reqline) { - error("readline requested line %d but file only had %d lines", reqline, i - 1); + info("readline requested line %d but file only had %d lines", reqline, i - 1); value[0] = '\0'; } } |