[PATCH] safe_serial: use preprocessor directive for error