]> git.webhop.me Git - lcd4linux.git/commitdiff
changed error() to info() to avoid syslog flooding
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Mon, 26 Mar 2012 04:31:55 +0000 (04:31 +0000)
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Mon, 26 Mar 2012 04:31:55 +0000 (04:31 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1183 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

plugin_file.c

index a246870bdd9e89007e4c33fb3a2e6e18e39e3e4e..8d6e548e9c8a246601a0db827d64b93f2cf4b541 100644 (file)
@@ -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';
        }
     }