--- hplip-2.7.6/prnt/backend/hp.c.media-empty 2007-05-11 22:55:52.000000000 +0100 +++ hplip-2.7.6/prnt/backend/hp.c 2007-06-29 15:34:02.000000000 +0100 @@ -326,7 +326,7 @@ int len, vstatus, cnt; char buf[HPMUD_BUFFER_SIZE]; struct hpmud_model_attributes ma; - int paperout=0, offline=0; + int paperout=-1, offline=-1; HPMUD_DEVICE hd=-1; HPMUD_CHANNEL cd=-1; int n, total, retry=0, size; @@ -440,14 +440,14 @@ switch (vstatus) { case VSTATUS_OOPA: - if (!paperout) + if (paperout != 1) { fputs("STATE: +media-empty-error\n", stderr); paperout=1; } break; default: - if (!offline) + if (offline != 1) { fputs("STATE: +other\n", stderr); offline=1;