Blame SOURCES/hplip-hpijs-marker-supply.patch

a389ae
diff -up hplip-3.10.9/prnt/hpijs/hpijs.cpp.hpijs-marker-supply hplip-3.10.9/prnt/hpijs/hpijs.cpp
a389ae
--- hplip-3.10.9/prnt/hpijs/hpijs.cpp.hpijs-marker-supply	2010-10-18 16:58:23.882993673 +0100
a389ae
+++ hplip-3.10.9/prnt/hpijs/hpijs.cpp	2010-10-18 17:00:00.510869032 +0100
a389ae
@@ -585,6 +585,7 @@ int main (int argc, char *argv[], char *
a389ae
    char *raster = NULL, *k_raster = NULL;
a389ae
    int status = EXIT_FAILURE;
a389ae
    int ret, n, i, kn=0, width, k_width;
a389ae
+   int low_marker = 0;
a389ae
    char user_name[32]={0,};
a389ae
         
a389ae
    openlog("hpijs", LOG_PID,  LOG_DAEMON);
a389ae
@@ -666,14 +667,17 @@ int main (int argc, char *argv[], char *
a389ae
 			case WARN_LOW_INK_YELLOW:
a389ae
 			case WARN_LOW_INK_MULTIPLE_PENS:
a389ae
                         {
a389ae
-                           fputs("STATE: +marker-supply-low-warning\n", stderr);
a389ae
+			   low_marker = 1;
a389ae
                            break;
a389ae
                         }
a389ae
 			default:
a389ae
-                           fputs("STATE: +marker-supply-low-warning\n", stderr);
a389ae
+			   low_marker = 1;
a389ae
 		}
a389ae
     }
a389ae
 
a389ae
+    fprintf(stderr, "STATE: %cmarker-supply-low-warning\n",
a389ae
+	    low_marker ? '+' : '-');
a389ae
+
a389ae
 #if 0
a389ae
    BUG("device model=%s\n", pSS->pPC->PrinterModel());
a389ae
    BUG("device class=%s\n",  pSS->pPC->PrintertypeToString(pSS->pPC->SelectedDevice()));