I have a device driver I want to patch. This device driver calls IOLog and I want to get rid of the logging.
If I replace the CALLL to IOLog with (the corresponding number of) NOPs inside the device driver (kext), the kernel crashes with what looks like a smashed stack ("Backtrace terminated-invalid frame pointer 0").
The same technique however, works fine in user-space (e.g. NOPping NSLogs inside an OS X binary).
What am I missing here?