device_type_str is only used inside a CLUTTER_NOTE, which evaluate to nothing when CLUTTER_ENABLE_DEBUG is off.