perfect function doesn’t exis- 👇
@GromBeestje @nixCraft reminds me of the old "lp0 on fire" error in some older Unixes

@peter, it's still there in (at least) current Linux.

On a status check, “lp0 on fire” (for appropriate values of 0) may be logged; on opening the device file, “lp0 printer error” will be logged instead given the same error condition. It's specific to an error condition reported via the 8255 status port.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/char/lp.c?id=6a0e38264012809afa24113ee2162dc07f4ed22b#n264

lp.c « char « drivers - kernel/git/torvalds/linux.git - Linux kernel source tree