hplip-hpijs-marker-supply.patch 1.2 KB

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