[cups.development] HP Laserjet Pro CP1025nw backend/snmp-supplies.c doesn't work
Michael Sweet
msweet at apple.com
Tue Dec 14 11:35:55 PST 2010
Ah, they have broken their SNMP implementation (again)...
On Dec 14, 2010, at 4:50 AM, Rick Richardson wrote:
>
> $ cat snmp-supplies.diff
> --- snmp-supplies.c.org 2010-06-26 17:20:49.000000000 -0500
> +++ snmp-supplies.c 2010-06-27 12:53:41.000000000 -0500
> @@ -280,7 +280,8 @@
> return (-1);
>
> if (!_cupsSNMPRead(snmp_fd, &packet, CUPS_SUPPLY_TIMEOUT) ||
> - packet.object_type != CUPS_ASN1_COUNTER)
> + (packet.object_type != CUPS_ASN1_COUNTER &&
> + packet.object_type != CUPS_ASN1_INTEGER) )
> return (-1);
>
> *page_count = packet.object_value.counter;
> @@ -473,7 +474,7 @@
> fprintf(stderr,
> "DEBUG: prtGeneralCurrentLocalization type is %x, expected %x!\n",
> packet.object_type, CUPS_ASN1_INTEGER);
> - return;
> + // return;
> }
>
> fprintf(stderr, "DEBUG2: prtGeneralCurrentLocalization=%d\n",
> @@ -494,7 +495,7 @@
> fprintf(stderr,
> "DEBUG: prtLocalizationCharacterSet type is %x, expected %x!\n",
> packet.object_type, CUPS_ASN1_INTEGER);
> - return;
> + // return;
> }
>
> fprintf(stderr, "DEBUG2: prtLocalizationCharacterSet=%d\n",
>
>
> _______________________________________________
> cups-dev mailing list
> cups-dev at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-dev
________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups-devel
mailing list