]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
minor documentation correction in driverless 270/head
authornidhijainpnp <12njain06@gmail.com>
Thu, 6 Aug 2020 04:57:23 +0000 (10:27 +0530)
committernidhijainpnp <12njain06@gmail.com>
Thu, 6 Aug 2020 04:57:23 +0000 (10:27 +0530)
utils/driverless.1
utils/driverless.c

index 18c5b4f24cf9592e121aa2fa546cda713737a8c3..81e87a805137bf7d146152c6d7ba64bf1d16a091 100644 (file)
@@ -53,11 +53,11 @@ for driverless PPD file generation (to be used by CUPS).
 .TP
 .B
 \fB_ipps._tcp\fP
-Check for only IPPS printers supporting driverless printing (to be  used by CUPS).
+Check for only IPPS printers supporting driverless printing .
 .TP
 .B
 \fB_ipp._tcp\fP
-Check for only IPP printers supporting driverless printing (to be  used by CUPS).
+Check for only IPP printers supporting driverless printing .
 .TP
 .B
 \fBcat\fP \fIdriver URI\fP
index 8a23d2f18eaf00f196956d7a6cd7c9e93f3f3490..81adcfc36fb718c1e2dff90d207f2481283766d4 100644 (file)
@@ -332,11 +332,11 @@ listPrintersInArray(int post_proc_pipe[], cups_array_t *service_uri_list_ipps,
 
            if (mode == 1){
              /* Call with "list" argument  (PPD generator in list mode)   */ 
-        snprintf(bufferOutput,8190,"\"driverless:%s\" en \"%s\" \"%s, %s, cups-filters " VERSION
+        snprintf(bufferOutput,8191,"\"driverless:%s\" en \"%s\" \"%s, %s, cups-filters " VERSION
             "\" \"%s\"\n", service_uri, make, make_and_model, driverless_info, device_id);  
         bufferOutput[8191] = '\0';
         if(reg_type_no < 1){
-          snprintf(copy_bufferOutput_ipps,8190,"\"driverless:%s\" en \"%s\" \"%s, %s, cups-filters " VERSION
+          snprintf(copy_bufferOutput_ipps,8191,"\"driverless:%s\" en \"%s\" \"%s, %s, cups-filters " VERSION
             "\" \"%s\"\n", copy_service_uri_ipps, make, make_and_model, driverless_info, device_id);
           copy_bufferOutput_ipps[8191] = '\0';
           if(cupsArrayFind(service_uri_list_ipps,copy_bufferOutput_ipps) == NULL){
@@ -353,10 +353,10 @@ listPrintersInArray(int post_proc_pipe[], cups_array_t *service_uri_list_ipps,
            else{
          /* Call without arguments and env variable "SOFTWARE" starting
             with "CUPS" (Backend in discovery mode) */
-       snprintf(bufferOutput,8190,"network %s \"%s\" \"%s (%s)\" \"%s\" \"\"\n", service_uri, make_and_model, make_and_model, driverless_info, device_id);
+       snprintf(bufferOutput,8191,"network %s \"%s\" \"%s (%s)\" \"%s\" \"\"\n", service_uri, make_and_model, make_and_model, driverless_info, device_id);
        bufferOutput[8191] = '\0';
         if(reg_type_no < 1){
-          snprintf(bufferOutput,8190,"network %s \"%s\" \"%s (%s)\" \"%s\" \"\"\n", copy_service_uri_ipps, make_and_model, make_and_model, driverless_info, device_id);
+          snprintf(bufferOutput,8191,"network %s \"%s\" \"%s (%s)\" \"%s\" \"\"\n", copy_service_uri_ipps, make_and_model, make_and_model, driverless_info, device_id);
           copy_bufferOutput_ipps[8191] = '\0';
           if(cupsArrayFind(service_uri_list_ipps,copy_bufferOutput_ipps) == NULL){
              /* IPPS version of IPP printer is not present */
@@ -830,10 +830,8 @@ int main(int argc, char*argv[]) {
          "  list                    List the driver URIs and metadata for all available\n"
          "                          IPP/IPPS printers supporting driverless printing (to be\n"
          "                          used by CUPS).\n"
-    "  _ipps._tcp              Check for only IPPS printers\n"
-         "                          supporting driverless printing (to be  used by CUPS).\n"
-    "  _ipp._tcp               Check for only IPP printers\n"
-         "                          supporting driverless printing (to be  used by CUPS).\n"
+    "  _ipps._tcp              Check for only IPPS printers supporting driverless printing\n"
+    "  _ipp._tcp               Check for only IPP printers supporting driverless printing\n"
          "  cat <driver URI>        Generate the PPD file for the driver URI\n"
          "                          <driver URI> (to be used by CUPS).\n"
          "  <printer URI>           Generate the PPD file for the IPP/IPPS printer URI\n"