]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Clean up error messages.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 16 May 2019 21:00:21 +0000 (17:00 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 16 May 2019 21:00:21 +0000 (17:00 -0400)
cups/ipp-file.c

index bca3d34c50e8e0cfd3cc2dbeb87ffad1f301af54..5db5932a4e086cdfa6bafe142340dff0c6906d31 100644 (file)
@@ -462,14 +462,14 @@ parse_collection(
 
       if (!_ippFileReadToken(f, syntax, sizeof(syntax)))
       {
-        report_error(f, v, user_data, "Missing ATTR syntax on line %d of \"%s\".", f->linenum, f->filename);
+        report_error(f, v, user_data, "Missing MEMBER syntax on line %d of \"%s\".", f->linenum, f->filename);
        ippDelete(col);
        col = NULL;
        break;
       }
       else if ((value_tag = ippTagValue(syntax)) < IPP_TAG_UNSUPPORTED_VALUE)
       {
-        report_error(f, v, user_data, "Bad ATTR syntax \"%s\" on line %d of \"%s\".", syntax, f->linenum, f->filename);
+        report_error(f, v, user_data, "Bad MEMBER syntax \"%s\" on line %d of \"%s\".", syntax, f->linenum, f->filename);
        ippDelete(col);
        col = NULL;
        break;
@@ -477,7 +477,7 @@ parse_collection(
 
       if (!_ippFileReadToken(f, name, sizeof(name)) || !name[0])
       {
-        report_error(f, v, user_data, "Missing ATTR name on line %d of \"%s\".", f->linenum, f->filename);
+        report_error(f, v, user_data, "Missing MEMBER name on line %d of \"%s\".", f->linenum, f->filename);
        ippDelete(col);
        col = NULL;
        break;
@@ -742,7 +742,7 @@ parse_value(_ipp_file_t      *f,    /* I  - IPP data file */
         {
           if (valuelen & 1)
           {
-           report_error(f, v, user_data, "Bad ATTR octetString value on line %d of \"%s\".", f->linenum, f->filename);
+           report_error(f, v, user_data, "Bad octetString value on line %d of \"%s\".", f->linenum, f->filename);
            return (0);
           }
 
@@ -753,7 +753,7 @@ parse_value(_ipp_file_t      *f,    /* I  - IPP data file */
           {
            if (!isxdigit(valueptr[0] & 255) || !isxdigit(valueptr[1] & 255))
            {
-             report_error(f, v, user_data, "Bad ATTR octetString value on line %d of \"%s\".", f->linenum, f->filename);
+             report_error(f, v, user_data, "Bad octetString value on line %d of \"%s\".", f->linenum, f->filename);
              return (0);
            }
 
@@ -796,7 +796,7 @@ parse_value(_ipp_file_t      *f,    /* I  - IPP data file */
 
           if (strcmp(value, "{"))
           {
-           report_error(f, v, user_data, "Bad ATTR collection value on line %d of \"%s\".", f->linenum, f->filename);
+           report_error(f, v, user_data, "Bad collection value on line %d of \"%s\".", f->linenum, f->filename);
            return (0);
           }
 
@@ -811,7 +811,7 @@ parse_value(_ipp_file_t      *f,    /* I  - IPP data file */
        break;
 
     default :
-        report_error(f, v, user_data, "Unsupported ATTR value on line %d of \"%s\".", f->linenum, f->filename);
+        report_error(f, v, user_data, "Unsupported value on line %d of \"%s\".", f->linenum, f->filename);
         return (0);
   }